Lesson 9 / 12 · 8 min · Beginner

Tables

  • ✓ arrays
  • ✓ dictionaries
  • ✓ inventory

Start

1. Understand

A short beginner explanation of Tables.

Why do Roblox developers care?

Roblox creators use tables in real games every day.

Show deeper explanation

Technical: Technical notes for Tables — expand when ready.

Roblox: In Roblox Studio, tables shows up in scripts, Parts, and game systems.

2. See

IDEA↓Tables↓GAME BEHAVIOR

3. Try · Run

Browser Luau

Browser Luau Try it yourself

Output


    

Your turn: Change one value, Run, and watch Output.

4. Predict

local inventory = {"Sword","Potion","Shield"}
for i = 1, #inventory do
    print(inventory[i])
end

What will happen when you Run?

5. Break · Fix

Common beginner mistake

Check spelling and Output before rewriting everything.

6. Build · Challenge

Roblox Studio — In Roblox Studio, tables shows up in scripts, Parts, and game systems.

Related project

Checkpoint: You can explain and try tables.

You learned Tables

Continue to Script Types →