Here is my code:
while workspace["Water, Start, Timer, and Platforms"].Start.Transparency == 0 do for _,v in pairs(workspace["Water, Start, Timer, and Platforms"].Platforms:GetChildren()) do if v:IsA("BasePart") then v.Transparency = 1 end end end while workspace["Water, Start, Timer, and Platforms"].Start.Transparency == 1 do for _,v in pairs(workspace["Water, Start, Timer, and Platforms"].Platforms:GetChildren()) do if v:IsA("BasePart") then v.Transparency = 0 end end end
Any suggestions?
add a wait()
while workspace["Water, Start, Timer, and Platforms"].Start.Transparency == 0 do for _,v in pairs(workspace["Water, Start, Timer, and Platforms"].Platforms:GetChildren()) do if v:IsA("BasePart") then v.Transparency = 1 end end wait() end while workspace["Water, Start, Timer, and Platforms"].Start.Transparency == 1 do for _,v in pairs(workspace["Water, Start, Timer, and Platforms"].Platforms:GetChildren()) do if v:IsA("BasePart") then v.Transparency = 0 end end wait() end