I Wanted To Make A Light Switch With These Items: UnionOperation ("BackLamp") And The Children --> ClickDetector ("ClickSwitch") / PointLight ("Light") / A Script (Below)
local LightShine = script.Parent.Light.Enabled
function onMouseClick()
if LightShine == true then
LightShine = false
else
LightShine = true --IDK How To Switch It Back To "On" :(
end
end
script.Parent.ClickSwitch.MouseClick:connect(onMouseClick)

4 comments
So do you want us to check your script or...?
Yes - Why Do You Ask? (If There Is Any Errors)
Please don't start your topic as "Is This Script Right?" That is way to broad, and other curious people might not be able to get an answer and might end up having to ask the same problem as you do. I suggest titling it something like "'if' statement won't turn light back on" (I think that's a bad topic statement, but it's a start).
kthx Red