Module 14 · In Studio · challenge 3 of 3 in this lesson
challenges/work/feel_rules.luau fires hit feedback once per confirmed hitId and never on miss, rejected or duplicate IDs
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Start from m14-ship in the game repo and implement the pure hit-confirm feedback planner in challenges/work/feel_rules.luau, then verify with game.ServerScriptService.RunGameTests:Invoke("game-feel", "game-feel-confirm").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("game-feel", "game-feel-confirm")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/feel_rules.luau fires hit feedback once per confirmed hitId and never on miss, rejected or duplicate IDs
- Confirmed Drone hits plan 0.06 s hit stop and 0.45 shake; Crawler hits plan 0.3 shake; both format -34 damage text and layered clang
- reducedMotion sets hitStopSeconds and shakeAmplitude to 0 while preserving playConfirm, damageText and playLayeredClang
- shakeEnvelope decays exponentially and jitterPitch clamps unitRoll across [1 - spread, 1 + spread]
- RunGameTests:Invoke("game-feel", "game-feel-confirm") passes all 8 checks