Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

RedLight,YellowLight,GreenLight, script not working?

Asked by 10 years ago
01local redLight = game.Workspace.RedLight.PointLight
02 
03wait (3)
04 
05game.Workspace.RedLight.PointLight.Enabled = true
06 
07wait (3)
08 
09game.Workspace.RedLight.PointLight.Enabled = false
10game.Workspace.YellowLight.PointLight.Enabled = true
11 
12wait (3)
13 
14game.Workspace.YellowLight.PointLight.Enabled = false
15game.Workspace.GreenLight.PointLight.Enabled = true
View all 21 lines...

1 answer

Log in to vote
0
Answered by 10 years ago

The end is pointless unless if you have a function. I haven't tested it but you can try it.

01local redLight = game.Workspace.RedLight.PointLight
02 
03wait (3)
04 
05game.Workspace.RedLight.PointLight.Enabled = true
06 
07wait (3)
08 
09game.Workspace.RedLight.PointLight.Enabled = false
10game.Workspace.YellowLight.PointLight.Enabled = true
11 
12wait (3)
13 
14game.Workspace.YellowLight.PointLight.Enabled = false
15game.Workspace.GreenLight.PointLight.Enabled = true
16 
17wait (5)
18 
19game.Workspace.GreenLight.PointLight.Enabled = false
Ad

Answer this question