I need this script to change the light's color every .1 second. Why won't it work?
while true do
script.Parent.Spotlight.Color = Color3.new(math.random(), math.random(), math.random())
wait(0.1)
end
Btw this is for a nightclub map in one of my games :D

3 comments
Your right. It was a typo. Thanks!
For the future, in Studio you can look at the Output window and it will show you errors like this. In online mode you can press F9 to open the Developer Console, which also shows the output.
Wait a sec... I just realized... MERELY NOTICED ME AND ANSWERED MY QUESTION!! OMFG, I AM FREAKING OUT RIGHT NOW!