my problem is that I'm making a Table of all the children in the Model Orb and what I want it to do is on touch of the Orb make the model go invis and 5 seconds later come make to visible. when the code is ran and then I touch the part it goes invis 1 part at a time every 5 seconds. I know its because its looping but is there anyway I can make a table that does not loop and still uses GetChildren. THANK YOU for reading
local Orb = script.Parent:GetChildren()
function onTouched()
for i, v in pairs(Orb) do
v.Transparency = 1
wait(5)
v.Transparency = 0
end
end
script.Parent.Part.Touched:connect(onTouched)

2 comments
So all bricks invisible for five seconds? Just use two for loops, have the five second wait between them.
Fixed indentation.