Hey how do I make a GUI that disables a script when it is clicked/tapped?

I’ve tried that before. (IGNORE THIS IT HAS TO BE 30 LONG)