Overview
Standard libraries
The Luau libraries that are available, and the limited os and debug tables.
Full Luau libraries
These are the standard Luau libraries, with all their usual functions:
stringtablemathutf8bit32coroutinebuffer(when the runtime provides it)vector(when the runtime provides it)
Refer to the Luau documentation for their functions. Each function is wrapped so that it can be hooked.
os (restricted)
Only four functions are available.
os.time(t)
Seconds since the epoch.
os.clock()
High-resolution process clock, in seconds.
os.date(format, time)
Formats a time.
os.difftime(a, b)
Difference between two times.
Everything else in os (execute, getenv, remove, exit, ...) does not exist.
debug (restricted)
debug.traceback(...)
Returns a stack traceback string.
debug.info(...)
Returns information about a function or stack level, using the Luau debug.info formats.
Legacy globals
tick()
Returns os.time(): whole seconds since the epoch.
time()
Returns the scheduler time in seconds.
See Scheduler for wait, spawn and delay.