Module 2 · In Studio · challenge 3 of 3 in this lesson
Config.luau has PAD_COUNT = 6
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Switch to m06-drone-wrench (where MapBuilder and challenges/luau-basics.luau live), move the pad count into Config, and drive MapBuilder's loop from it. The written solution is in the game repo at challenges/solutions/luau-basics.md.
- Start from
- The game at milestone m06 (download)
- Grade it
- To grade work from an earlier milestone, apply your challenge changes to a checkout based on
m14-ship, which includes the Course Runner. In Studio, press Play, then rungame.ServerScriptService.RunGameTests:Invoke("luau-basics")in the server command bar. Copy the pass code from Output.
Done means
- Config.luau has PAD_COUNT = 6
- Self-check, the test cannot see it: MapBuilder requires Config and its pad loop runs from 1 to Config.PAD_COUNT
- The yard still has Pad1 to Pad6 and no Pad0
- The Course Runner prints TEST PASS luau_basics_pad_count and a pass code