Hi,
I want to make a button that does two jobs. I press is once and it turns on the light, I press it again and it turns it off.
I have a blank script in the button with a click detector in the button as well.
This is the link from the script to the light
script.Parent.Parent.SpotLight1.Light.SpotLight
What would the script be so I can turn it on and off with the one button!?
Thanks Kieran

6 comments
I have used this script with my in put into this, what am I doing wrong?
LP = script.Parent.Parent.SpotLight1.Light.PointLight btn = script.Parent.ClickDetector function onClick() if LP.Enabled == true then LP.Enabled = false else LP.Enabled = true btn.MouseClick1:connect(onClick) end end
lemme see... well 1st try see if there are any red lines (errors) then check the output...
Nope, there arn't any
It's ok now I have managed to configure it. Thanks
np, sry I couldn't respond to help faster though...