So, I've tried a few different things for this and nothing seems to work. I'm working on making a light slowly change color at the click of a button. I have named the light "light1" and I have put it in the model "PromLights". Any tips or ideas would be appreciated! Thanks so much!
Here's a sample of the script I made:
game.Workspace.PromLights.light1.SpotLight = Color3.new (226, 158, 255)
wait (0.2)
game.Workspace.PromLights.light1.SpotLight = Color3.new (233, 153, 255)
wait (0.2)
game.Workspace.PromLights.light1.SpotLight = Color3.new (240, 151, 255)

4 comments
You need to include the "Color" attribute of the spotlight as well. (Ex. "Spotlight.Color3 = Color3.new (240, 151, 255)")
Oh and also Color3.new uses a scale of 0-1 not 0-255, you would want to use Color3.fromRGB() instead.
Thank you so much!! The script finally works!
If it worked please edit your post and add "[SOLVED]" to the title.