Dictionary

A table whose keys are names or other values instead of 1, 2, 3.

Think of it as An index card box sorted by name, where a missing card means nil.

Config.luau is a dictionary: COIN_VALUE, SPEED_PRICE and the rest are keys. t.key and t["key"] are the same lookup. A missing key reads as nil without an error, and setting a key to nil removes it. Loops over a dictionary have no promised order.

Official reference: create.roblox.com

Related terms