ScriptContext
Controls script execution and reports script errors.
- Service
game:GetService("ScriptContext")- Inherits
- Instance
- Replication
- Never
Behavior
ScriptContext controls script execution and reports script errors.
Summary
Members4
Methods3
Returns this instance if it is an ExecutionGroup.
Returns the number of running scripts.
Returns execution statistics for scripts.
Events1
Fires when a script error is reported.
Methods
GetExecutionGroup
ScriptContext:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
GetRunningScriptCount
ScriptContext:GetRunningScriptCount(): numberReturns the number of running scripts.
GetScriptStats
ScriptContext:GetScriptStats(): tableReturns execution statistics for scripts.
Events
Error
ScriptContext.Error: RBXScriptSignalFires when a script error is reported.
Inherited members
Inherited47
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying