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

Return confirm = false, hitStop = 0, shake = 0, text = nil for miss or rejected swings

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

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 1, Apprentice

Challenge

Fix planHit in hitstop-gate so only confirmed hits emit feedback and reducedMotion disables shake and hit stop without hiding damage numbers.

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

  • Return confirm = false, hitStop = 0, shake = 0, text = nil for miss or rejected swings
  • Set hitStop = 0 and shake = 0 when reducedMotion is true while keeping confirm = true and text = -34
  • All four assertions in hitstop-gate pass