local part = workspace.Part local spotlight = part.SpotLight local Enabled = true script.Parent.ClickDetector.MouseClick:connect(function() if spotlight == Enabled then Enabled = false elseif Enabled == true then Enabled = true end end)
new to scripting and trying to make sense of debounces and stuff like taht and started here