โ ๐ Lua World
๐ Name Tag Maker
You can practise without a player, but pick a player to score points!
๐ The mission
Today you unlock
Text can be built from pieces
String levels are about joining words, numbers, and punctuation in the exact order the mission asks for.
๐ก Hint ladder
- Build it piece by piece: "[Lv." .. level .. "] " .. name
- Watch the spaces โ there is exactly one, after the ].
๐งช Coach checks
- โฏ Zoe level 5
- โฏ newbie level 1
- โฏ level 100 pro
Live coach
Getting ready
โโโ
๐ฌ Numbers glue straight onto text with .. โ no converting needed.
function scoreBadge(name, score)
return name .. " has " .. score .. " points"
end
print(scoreBadge("Zoe", 250)) -- Zoe has 250 points
๐ It printed:
Nice โ you saw it work!
๐ Output
๐งฉ Gaps filled! Ready to write it all yourself?