Please tell me what I'm doing wrong here. The boolvalue won't change to true no matter what I do (it is set to false by default)
local IsOn = script.Parent.IsOn.Value
script.Parent.ClickDetector.MouseClick:Connect(function()
if IsOn==false then
IsOn=true
elseif IsOn==true then
IsOn=false
end
end)

2 comments
Thanks again R_alatch, your knowledge in scripting far overpowers mine.
You are doing the right things, it's just that simple things like this can make your entire script not function correctly.