Module 11 · In Studio · challenge 1 of 2 in this lesson

Build and grade Project 1 in Studio

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

Open

Level 3, Professional

Challenge

Extend src/shared/Config.luau and src/server/CombatService.luau in your m14-ship game, then run challenges/capstone_swarm.luau in Studio. Solution: challenges/solutions/capstone-yard-extensions.md.

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

Done means

  • Config.SWARM_MAX_HEALTH is set to a positive number (50 recommended) while WRENCH_DAMAGE stays 34 and DRONE_MAX_HEALTH stays 100
  • Swinging at an untagged decoy part still returns miss
  • Swinging at a Swarm-tagged target returns hit and subtracts Config.WRENCH_DAMAGE from its Health attribute
  • A lethal swing destroys the Swarm model, and challenges/capstone_swarm.luau prints TEST PASS for all four checks

The Course Runner prints this code when the test passes.