Collapse Sidebar




Determines whether a BaseScript will run or not.

Scripts and LocalScripts, when parented to a valid parent, will run when Disabled is false.

If Disabled is set to true whilst a script is running, the current thread will be terminated.

If Disabled is set to true from false, the script will run again. This means the Disabled property can be toggled to restart a script:

scriptObject.Disabled = false
scriptObject.Disabled = true

Note, the above code snippet cannot be used within the script itself. This is because once the script is disabled the thread will terminate.