Hello i made a script that turn on and off multiple surface lights that works but the thing is that they don't turn off at the same time, they turn off one after another which is not what i'm trying to do. How would i fix it to where they all turn off at the same time.
while true do
for i,v in pairs(script.Parent:GetChildren()) do
if v~= script then
v.Bulb.SurfaceLight.Enabled = not v.Bulb.SurfaceLight.Enabled
wait(0.1)
end
end
end
