Comments: What Doesn't Run: Coding lesson for kids
In “Comments: What Doesn't Run”, children learn about -- this is a comment and print("Hi") -- says hello.
-- this is a comment: Two dashes start a comment — Lua ignores everything after them on that line.
print("Hi") -- says hello: A comment can follow real code on the same line, 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.