How do I make a loop for lights so every second they turn on, then off? Please help!
it comes up with this
SpotLight is not a valid member of Part
you would use a while loop:
1 | local Timetowait = 1 |
2 | while wait(Timetowait) do |
3 | if script.Parent.SpotLight.Enabled = = true then |
4 | script.Parent.SpotLight.Enabled = false |
5 | else |
6 | script.Parent.SpotLight.Enabled = true |
7 | end |
8 | end |