Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

RedLight,YellowLight,GreenLight, script not working?

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

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




This discussion is preserved as it was. New answers, comments, and votes are closed.