01 | local redLight = game.Workspace.RedLight.PointLight |
02 |
03 | wait ( 3 ) |
04 |
05 | game.Workspace.RedLight.PointLight.Enabled = true |
06 |
07 | wait ( 3 ) |
08 |
09 | game.Workspace.RedLight.PointLight.Enabled = false |
10 | game.Workspace.YellowLight.PointLight.Enabled = true |
11 |
12 | wait ( 3 ) |
13 |
14 | game.Workspace.YellowLight.PointLight.Enabled = false |
15 | game.Workspace.GreenLight.PointLight.Enabled = true |
The end is pointless unless if you have a function. I haven't tested it but you can try it.
01 | local redLight = game.Workspace.RedLight.PointLight |
02 |
03 | wait ( 3 ) |
04 |
05 | game.Workspace.RedLight.PointLight.Enabled = true |
06 |
07 | wait ( 3 ) |
08 |
09 | game.Workspace.RedLight.PointLight.Enabled = false |
10 | game.Workspace.YellowLight.PointLight.Enabled = true |
11 |
12 | wait ( 3 ) |
13 |
14 | game.Workspace.YellowLight.PointLight.Enabled = false |
15 | game.Workspace.GreenLight.PointLight.Enabled = true |
16 |
17 | wait ( 5 ) |
18 |
19 | game.Workspace.GreenLight.PointLight.Enabled = false |