Module 12 · In Studio · challenge 3 of 3 in this lesson
challenges/work/move_check.luau measures horizontal distance only
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Start from the m14-ship tag in the game repo, then fix the stock move check so an honest fall and a little jitter pass while speed hacks and teleports fail. The test uses Config.WALK_SPEED and Config.BOOST_SPEED. Run it with game.ServerScriptService.RunGameTests:Invoke("custom-character-controllers").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("custom-character-controllers")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/move_check.luau measures horizontal distance only
- It allows walkSpeed * dt * 1.25 plus 2 studs of slack
- It rejects NaN and infinite positions
- The custom-character-controllers challenge prints TEST PASS for all eight checks