Table

Luau's one container: a set of key and value pairs that works as a list, a dictionary or an object.

Think of it as A cabinet of labelled drawers.

A table maps keys to values. With keys 1, 2, 3 it is a list; with names or objects as keys it is a dictionary or a set. Tables are passed by reference: assigning one to another variable shares it, and table.clone makes a one-level copy.

Official reference: create.roblox.com

Related terms