Module 2 · In Studio · challenge 3 of 3 in this lesson

At the end of Remotes.init, the Remotes folder gets an attribute RemoteCount equal to #REMOTE_NAMES

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Switch to m06-drone-wrench (where Remotes.luau and challenges/luau-modules.luau live) and publish the count from the live Remotes module. The written solution is challenges/solutions/luau-modules.md in the game repo.

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 run game.ServerScriptService.RunGameTests:Invoke("luau-modules") in the server command bar. Copy the pass code from Output.

Done means

  • At the end of Remotes.init, the Remotes folder gets an attribute RemoteCount equal to #REMOTE_NAMES
  • Self-check, the test cannot see it: the number comes from the list, not a typed 5
  • The Course Runner prints TEST PASS luau_modules_remote_count and a pass code

The Course Runner prints this code when the test passes.