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
- Strings and tables:
stringx,tablex - Math and random:
mathx,Random - Data structures:
Queue,Stack,Set,PriorityQueue,LRU,RingBuffer - Patterns:
EventEmitter,Maid,StateMachine,Promise - Timing and input:
Time,Tween,Keybinds - Gameplay helpers:
Targeting,Players,Rot,Move,Inv,Combat,Clicker - Debug:
Debug
Global shortcuts
| Global | Same 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
Strings and tables
stringx and tablex.
Math and randommathx and Random.
Data structuresQueue, Stack, Set, PriorityQueue, LRU and RingBuffer.
PatternsEventEmitter, Maid, StateMachine and Promise.
Timing and inputTime, Tween and Keybinds.
Gameplay helpersTargeting, Players, Rot, Move, Inv, Combat and Clicker.
DebugDebug.inspect, dump, profile, logger and assertf.