Skip to content

Luau Standard Library

Mod VMs run Luau with ALL_SAFE libraries plus sandbox(true). This section is a runtime-verified inventory (generated by a core test that enumerates the live sandbox), not a transcription of Luau’s docs — if a function isn’t listed here, it isn’t available to mods.

Every function gets its own page with signature and examples:

Library Functions Notes
math 35 + 2 constants full library incl. Luau’s lerp, map, clamp, round, sign, noise, isnan/isinf/isfinite
string 18 full library + Luau’s split, binary pack/unpack/packsize
table 17 full library + Luau’s clone, clear, create, find, freeze, isfrozen
os 4 time only: clock, date, difftime, time — no execute/env/files
bit32 15 flag arithmetic for EConVarFlag; Luau’s countlz/countrz/byteswap
coroutine 8 incl. Luau’s close; the frame-spanning pattern
utf8 5 + charpattern Unicode-aware text handling
vector 14 + 2 constants native vector type; vector.create, not vector(...)
buffer 26 typed binary byte buffers
debug & misc 2 + loadstring debug.info, debug.traceback, runtime compilation
Library / function Why
io No file system access from mods (game-FS sandbox arrives later, scoped)
os.execute and friends No process/environment access
require Present but loader-less; package-local require is planned
debug internals Only info/traceback survive the sandbox
load Use loadstring
C FFI Never — mods stay memory-safe by construction