Module 4 · In Studio · challenge 3 of 3 in this lesson
While stunned, the drone backs away from its target instead of freezing
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Make a stunned drone retreat, then chase again.
- Start from
- The game at milestone m06 (download)
- Grade it
- To grade work from an earlier milestone, apply your challenge changes to a checkout based on
m14-ship, which includes the Course Runner. In Studio, press Play, then rungame.ServerScriptService.RunGameTests:Invoke("drone", "drone-retreat")in the server command bar. Copy the pass code from Output.
Done means
- While stunned, the drone backs away from its target instead of freezing
- After the stun ends, it chases again
- The default suite still passes: wrench_kill keeps its health checks (100, 66, 32, then gone) even though the drone now moves while stunned
- challenges/drone.luau prints TEST PASS for stun_retreat and chase_resumes