ScriptsDisabled (Property)

(Redirected from ScriptsDisabled)
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
ScriptsDisabled
Type bool
Description Sets whether script objects run their code. Scripts that are running won't stop running.
Member of ScriptContext


Example
-- Will stop new scripts from running, but will not stop already running scripts

game:GetService("ScriptContext").ScriptsDisabled = true