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

available hides the repair from a server with fewer than 2 players

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

Open

Level 3, Professional

Challenge

In the game repo, edit challenges/work/coop_rules.luau until RunGameTests:Invoke("designing-for-groups") passes in the Course Runner.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("designing-for-groups") in the server command bar. Copy the pass code from Output.

Done means

  • available hides the repair from a server with fewer than 2 players
  • pull returns a new table, ignores unknown levers and lets go of the other lever held by the same player
  • isRepaired needs two different players, both present, at most 1.5 s apart and at most 1.5 s old
  • crewProgress ignores negative amounts, caps each player at half the goal and the total at the goal

The Course Runner prints this code when the test passes.