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
local redLight = game.Workspace.RedLight.PointLight

wait (3)

game.Workspace.RedLight.PointLight.Enabled = true

wait (3)

game.Workspace.RedLight.PointLight.Enabled = false
game.Workspace.YellowLight.PointLight.Enabled = true

wait (3)

game.Workspace.YellowLight.PointLight.Enabled = false
game.Workspace.GreenLight.PointLight.Enabled = true

wait (5)

game.Workspace.GreenLight.PointLight.Enabled = false

end 

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.

local redLight = game.Workspace.RedLight.PointLight

wait (3)

game.Workspace.RedLight.PointLight.Enabled = true

wait (3)

game.Workspace.RedLight.PointLight.Enabled = false
game.Workspace.YellowLight.PointLight.Enabled = true

wait (3)

game.Workspace.YellowLight.PointLight.Enabled = false
game.Workspace.GreenLight.PointLight.Enabled = true

wait (5)

game.Workspace.GreenLight.PointLight.Enabled = false




Ad

Answer this question