Is there anyway to make this script 'smaller'?
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?
03 | if game.Workspace.LightsMode 1. Mode.Value = = 2 then |
04 | game.Workspace.LightSet 1. Lights.Light 1. Transparency = 0.7 |
05 | game.Workspace.LightSet 1. Lights.Light 1. SpotLight.Enabled = false |
07 | game.Workspace.LightSet 1. Lights.Light 2. Transparency = 0.7 |
08 | game.Workspace.LightSet 1. Lights.Light 2. SpotLight.Enabled = false |
10 | game.Workspace.LightSet 1. Lights.Light 3. Transparency = 0.7 |
11 | game.Workspace.LightSet 1. Lights.Light 3. SpotLight.Enabled = false |
13 | game.Workspace.LightSet 1. Lights.Light 4. Transparency = 0.7 |
14 | game.Workspace.LightSet 1. Lights.Light 4. SpotLight.Enabled = false |
16 | game.Workspace.LightSet 1. Lights.Light 5. Transparency = 0.7 |
17 | game.Workspace.LightSet 1. Lights.Light 5. SpotLight.Enabled = false |