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:
local Timetowait = 1 while wait(Timetowait) do if script.Parent.SpotLight.Enabled == true then script.Parent.SpotLight.Enabled = false else script.Parent.SpotLight.Enabled = true end end