Roblox Globals
Show Deprecated
Roblox has several unique built-in functions and variables in its Lua implementation. These are only found on Roblox and are not packaged by default with Lua.
Summary
Functions
Properties
A reference to the LuaSourceContainer object (Script, LocalScript, or ModuleScript) that is executing this code.
Functions
Properties
Enum
A reference to the Enums data type, which stores all of the available enums that can be used on Roblox.
script
A reference to the script object that is executing the code you are writing. It can be either a Script, a LocalScript, or a ModuleScript (and sometimes a CoreScript). This variable is not available when executing code from Roblox Studio's command bar.