I have a script which i disable then enable to just cancel it. It's in starterpack and there's a local script that disables it then enables the script. I checked the explorer while i was playing the game. It did disable and enable like how i coded the local script. BUT when I play it even though its enabled it doesn't run.
In compacted form a local script that gets disabled then enabled doesn't work.
Local scripts do stuff locally, which means you will have to use a normal script to enable/disable the script. The reason why you see it changing is because it is only changing locally. Thus, It will not work. I'd really just use functions if I were you. Example:
function sayhi() print("Hello!") end script.Parent.Touched:Connect(function() sayhi() end
If you put this script inside a part and touch it, it should say the word Hi in the output. Hope this helps!