Those belong to the âbasicâ library which unfortunately does not come packaged inside a global table of the same name.
local Global = {}
local Globals = {["_G"] = _G, ["_VERSION"] = _VERSION, ["assert"] = assert, ["collectgarbage"] = collectgarbage, ["DebuggerManager"] = DebuggerManager, ["delay"] = delay, ["elapsedTime"] = elapsedTime, ["Enum"] = Enum, ["error"] = error, ["game"] = game, ["getfenv"] = getfenv, ["getmetatable"] = getmetatable, ["ipairs"] = ipairs, ["loadstring"] = loadstring, ["newproxy"] = newproxy, ["next"] = next, ["pairs"] = pairs, ["pcall"] = pcall, ["PluginManager"] = PluginManager, ["print"] = print, ["printidentity"] = printidentity, ["rawequal"] = rawequal, ["rawget"] = rawget, ["rawset"] = rawset, ["require"] = require, ["select"] = select, ["setfenv"] = setfenv, ["setmetatable"] = setmetatable, ["settings"] = settings, ["shared"] = shared, ["spawn"] = spawn, ["stats"] = stats, ["tick"] = tick, ["time"] = time, ["tonumber"] = tonumber, ["tostring"] = tostring, ["typeof"] = typeof, ["unpack"] = unpack, ["UserSettings"] = UserSettings, ["version"] = version, ["wait"] = wait, ["warn"] = warn, ["workspace"] = workspace, ["xpcall"] = xpcall}
local Libraries = {bit32, coroutine, debug, math, os, string, table, utf8}
for Key, Value in pairs(Globals) do
Global[Key] = Value
end
for _, Library in ipairs(Libraries) do
for Key, Value in pairs(Library) do
Global[Key] = Value
end
end
print(Global._VERSION) --Luau
Bare in mind that collisions (keys that share the same name) may occur, for example the âunpackâ global and the table library function of the same name, fortunately these two functions have the same behavior so the collision isnât cause for concern.