i how i change if a script is active (localy) by clicking a gui? i wanna use this for the game im working on but allas, i dont know how. :(
Detect if the gui is pressed, then simply make the value of script.Disabled the opposite of what it is. Something like
ScriptToChange = [wherever it is] Script.parent.MouseButton1Down:connect(function() ScriptToChange.Disabled = not ScriptToChange.Disabled end)
Simple when the gui is clicked, the disabled value of the script to change goes to the opposite of what it is, so it turns into what it was not.
Also I don't know if you just wrote your thing weird or if you don't understand localscripts because it won't "change for everyone", it's local. If you dont understand then please read about it
I hope this helps :3