Reference API Roblox

Engine API

Website

Related

Reference API Roblox

ScriptVariableScope

Indicates the scope category of a variable returned by the debugger.

Items 3

HistoryNameValueDescription
721Local0

A local variable declared in the current function scope.

721Upvalue1

A variable captured from an enclosing function scope.

721Global2

A global variable.

Description

Used in ScriptVariable to classify the scope of a variable returned by ScriptDebuggerService:GetRootVariables() or ScriptDebuggerService:GetVariables(). Children of a variable inherit the parent's scope.

History 4

Settings