Array (list)

A table whose keys are 1, 2, 3 with no gaps.

Think of it as Numbered lockers, starting at locker 1.

Luau lists start at index 1. The length operator # is reliable only when there are no holes, so add with table.insert and remove with table.remove. Loops over a list visit the items in order.

Official reference: create.roblox.com

Related terms