I was wondering if I could neaten up/make this script shorter? The script I have pasted in is only some of it, the rest continues on, Light6, 7, 8 etc. I also would like it in the same order, so Light1 starts first, I was just wondering if anyone knows how to make this script shorter?
while true do
wait()
if game.Workspace.LightsMode1.Mode.Value == 2 then
game.Workspace.LightSet1.Lights.Light1.Transparency = 0.7
game.Workspace.LightSet1.Lights.Light1.SpotLight.Enabled = false
wait(0.2)
game.Workspace.LightSet1.Lights.Light2.Transparency = 0.7
game.Workspace.LightSet1.Lights.Light2.SpotLight.Enabled = false
wait(0.2)
game.Workspace.LightSet1.Lights.Light3.Transparency = 0.7
game.Workspace.LightSet1.Lights.Light3.SpotLight.Enabled = false
wait(0.2)
game.Workspace.LightSet1.Lights.Light4.Transparency = 0.7
game.Workspace.LightSet1.Lights.Light4.SpotLight.Enabled = false
wait(0.2)
game.Workspace.LightSet1.Lights.Light5.Transparency = 0.7
game.Workspace.LightSet1.Lights.Light5.SpotLight.Enabled = false
end
end
