Category

Utilities

Extra libraries built into the sandbox: strings, tables, math, structures, timing and helpers.

These libraries are written in Lua and run inside the sandbox. They add no new access to the game or to your computer: they are built on the same APIs documented elsewhere.

Pages in this category

Global shortcuts

GlobalSame as
uuid()HttpService:GenerateGUID()
inspect(v, depth)Debug.inspect
dump(v, depth)Debug.dump
clamp(x, a, b)mathx.clamp
lerp(a, b, t)mathx.lerp
round(x, digits)mathx.round
split(s, sep, plain)stringx.split
trim(s)stringx.trim

Constructors

Classes such as Queue or Promise are global tables with a single new function. Call methods on the object they return with a colon:

local q = Queue.new()
q:push(1)
print(q:pop())

In this category