How to disable a script

Why would it not work? script.Enabled = false makes it not be enabled, and I think when you enable it the script will restart. (But I don’t know 100%)

1 Like

Depends if you want it to be enable again at some point.
I just use … thescript.Enabled = false or thescript.Enabled = true

1 Like

I would personally use the bottom one since it is faster.

1 Like

This was awhile back seem to not be able to self turn off a script. But I was able to do it from a different script. In fact I may have even turned it on from the script at first. In fact I think that is what the deal was. The script I enable it from had to be the one to disable it.

1 Like

Store the script in ServerStorage. Then clone it when you need it. After you are done with it just Script:Destroy()

1 Like

You can also do Script:Remove()

1 Like