API:Class/ScriptContext

Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.
Service: This class is a service. It is a top-level singleton which can be obtained with the GetService method.
Uncreatable: This object cannot be created with Instance.new.

ExplorerImageIndex78.pngScriptContext : Object Icon.pngInstance

This service controls all BaseScript objects. Most of the properties and methods of this service are locked for internal use, however you may use the ScriptsDisabled property to disable all scripts from a thread with normal security access.

Properties

Properties [toggle]

boolScriptsDisabled [LocalUserSecurity]

Sets whether script objects run their code. Scripts that are already running won't stop running.

|RMD member="API:Class/ScriptContext/ScriptsDisabled"|Sets whether script objects run their code. Scripts that are already running won't stop running.|/RMD|
ScriptsDisabled [LocalUserSecurity]
Sets whether script objects run their code. Scripts that are already running won't stop running.

Functions

Functions [toggle]

voidSetTimeout ( double seconds ) [PluginSecurity]

Limits how long a script is allowed to run without yielding.

|RMD member="API:Class/ScriptContext/SetTimeout"|Limits how long a script is allowed to run without yielding.|/RMD|
SetTimeout ( double seconds ) [PluginSecurity]
Limits how long a script is allowed to run without yielding.


Events

Events [toggle]

Error ( string message, string stackTrace, LuaSourceContainer script )

Fired when an error occurs.

|RMD member="API:Class/ScriptContext/Error"|Fired when an error occurs.|/RMD|
Error ( string message, string stackTrace, LuaSourceContainer script )
Fired when an error occurs.

|RMD member="API:Class/ScriptContext"|This service controls all BaseScript objects. Most of the properties and methods of this service are locked for internal use, however you may use the ScriptsDisabled property to disable all scripts from a thread with normal security access. |/RMD|