Why can't I edit Spotlight properties?
I have this script which is supposed to turn the lights off by either making the brightness 0 or disabling it. Here is the script I have written:
01 | local light 3 = script.Parent.Parent.Parent.lights.Light 1. Light 3 |
02 | local Spotlight = light 3. SpotLight |
07 | local CanBreak = math.random( 1 , 10 ) |
10 | Spotlight = Color 3. new( "Really black" ) |
11 | Spotlight.Enabled = false |
The script was edited for this question to show the variable and how it is edited. The Color3 does work but the Spotlight.Enabled = false doesn't work. I can put the whole script if it would help, thanks.