--Dynamic Traffic Light made by DerDiebKommt. Only edit the things that the script says to edit.


while true do --This makes the script do a loop.
script.Parent.Green.PointLight.Enabled = false
script.Parent.Yellow.PointLight.Enabled = false
script.Parent.Red.PointLight.Enabled = true
script.Parent.Green.Transparency = 0.5
script.Parent.Yellow.Transparency = 0.5
script.Parent.Red.Transparency = 0
wait(25) --Edit this if you want the time faster/slower for Green to go to Yellow.
script.Parent.Green.PointLight.Enabled = true
script.Parent.Yellow.PointLight.Enabled = false
script.Parent.Red.PointLight.Enabled = false
script.Parent.Green.Transparency = 0
script.Parent.Yellow.Transparency = 0.5
script.Parent.Red.Transparency = 0.5
wait(25) --Edit this if you want the time faster/slower for Yellow to go to Red. 
script.Parent.Green.PointLight.Enabled = false
script.Parent.Yellow.PointLight.Enabled = true
script.Parent.Red.PointLight.Enabled = false
script.Parent.Green.Transparency = 0.5
script.Parent.Yellow.Transparency = 0
script.Parent.Red.Transparency = 0.5
wait(5) --Edit this if you want the time faster/slower for Red to go to Green.
end --This makes the script do a loop.
