Basically. I need something that can make the "Spotlight"'s Enabled state become True via a script in the switch.
✓ ANSWER ACCEPTED
How do I make a light become Enabled?
1 answer
✓ Accepted answer
Try This To Enable It:
script.Parent.Parent.Bulb.SpotLight.Enabled = true
And If You Want To Disable It Try This:
script.Parent.Parent.Bulb.SpotLight.Enabled = false
Also, Next Time Try Researching How To Do Something On The Roblox Developer Wiki Before Asking On Scripting Helpers: https://developer.roblox.com/api-reference/class/SpotLight
1 comment
0
or you could use the not operator for a switch
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Edit:- please use text for links.
script.Parent.Parent.Bulb.SpotLight.Enabled = true ???????????
SH is not a requesting site, we help people with code