Hi!
So I have a marble track game and I want to have a secret track that is only visible when a player finds it, to the player themselves. Ideally I was hoping to have a sort of path-building effect where segments of the track would become visible one at a time as the player rolls along, but I could not find a way to get the collection service to work in tandem to make multiple parts fade in at once. It would have to wait for the first part to become visible before starting the next. I also tried putting it in a model and doing a “for each” to each child, but that did the same thing.
I’ll settle for the entire track becoming visible at once, but the collection service is not working as I thought it could. It picks one random part in the track to turn visible and none of the others.
local player = game.Players.LocalPlayer local CollectionService = game:GetService("CollectionService") local visiTrigger = game.Workspace.visTrigger local transVal = 1 local deb = false local function makeVisi(visi) while true do visi.Transparency = transVal wait() end end visiTrigger.Touched:Connect(function() if deb == false then deb = true for i = 1,5,1 do transVal = transVal - .2 wait() end end end) for _, trig in pairs(CollectionService:GetTagged("visi")) do makeVisi(trig) --print (trig.Name) end How do I go about making the transparency fade apply to all the parts at the same time with one script? I don’t want to bog down my game either with a lot of scripts because the transparency changes too late and you lose the effect.





