Module 14 · In your browser · challenge 2 of 3 in this lesson

A scare resets pressure to 0 and starts RELIEF_SECONDS of relief

A code cell with the real Luau runner grades it. No Studio needed.

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 3, Professional

Challenge

Finish the tension director in the director-rules cell: reset after a scare, a relief that stops at 0, faster pressure near the threat, and a build beat.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • A scare resets pressure to 0 and starts RELIEF_SECONDS of relief
  • Relief counts down and never goes below 0
  • Pressure builds twice as fast while playerNearThreat is true
  • The beat is build when pressure is above half of BUILD_SECONDS and no scare happens
  • All tests in director-rules pass