Order the Lines: Coding lesson for kids

In “Order the Lines”, children learn about Lua runs top to bottom.

Lua runs top to bottom: Each line runs in order — a variable must be created before any line that uses it, same as every other language here.

This lesson is part of Lua in Coding at Pearls Valley Academy — The language behind Roblox’s Luau.

Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.