Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ 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.