I am trying to make a First class seat for my airline. The lighting will not work. Here are the scripts.
(To make it off)
function onClicked() script.Parent.Parent.Brightness = 0 script.Parent.Parent.Range = 0 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
(To make it on)
function onClicked() script.Parent.Parent.Brightness = 1 script.Parent.Parent.Range = 8 end script.Parent.ClickDetector.MouseClick:connect(onClicked)

4 comments
Still will not work, I am using a point light.
It will work now.
Yay it works! I see I did something wrong after you told me that, but then I fixed it. This was very helpful. Definitely will remember debounce again next time I need to light something up. Thanks for the help!
You're welcome!