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

nearMiss is true for a downed player or one left alive with 15 health or less

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

Open

Level 3, Professional

Challenge

In the game repo, edit challenges/work/offer_rules.luau until RunGameTests:Invoke("monetization-design") 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("monetization-design") in the server command bar. Copy the pass code from Output.

Done means

  • nearMiss is true for a downed player or one left alive with 15 health or less
  • decide returns the first failing reason in this order: in-drill, not-cooldown, no-near-miss, session-cap, cooldown, just-bought, shielded
  • The Shield for coins comes before the Coin Pack, and no Robux offer reaches a player before the third drill
  • copy names the price, fits in 48 characters and uses no pressure words (whole words, so know and snow are fine)

The Course Runner prints this code when the test passes.