Difference between revisions of "(global)"
m |
|||
Line 20: | Line 20: | ||
=== Reference === | === Reference === | ||
− | https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp</br> | + | '''https://luau.org/library#global-functions'''<br/> |
− | https://create.roblox.com/docs/reference/engine/globals/LuaGlobals | + | '''https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp'''</br> |
+ | '''https://create.roblox.com/docs/reference/engine/globals/LuaGlobals''' | ||
{|- | {|- |
Latest revision as of 12:18, 21 July 2025
Supported platforms:
Available since: Gideros 2011.6
Description
Global scope of Lua environment.
Example
Prints all current global variables:
local function globalVariable()
for k,v in pairs(_G) do
print(k,v)
end
end
globalVariable()
Reference
https://luau.org/library#global-functions
https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp
https://create.roblox.com/docs/reference/engine/globals/LuaGlobals
Methodsassert error if v nil or false, otherwise returns v |
EventsConstants |