Module 10 · In Studio · challenge 3 of 3 in this lesson

phaseFor returns parallel only for Raycast and math.noise, and serial for everything else

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Fix the planning helpers in challenges/parallel_luau_work.luau on m14-ship. Press Play and run this in the server command bar:

luau
game.ServerScriptService.RunGameTests:Invoke("parallel-luau")
Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("parallel-luau") in the server command bar. Copy the pass code from Output.

Done means

  • phaseFor returns parallel only for Raycast and math.noise, and serial for everything else
  • splitIntoBatches keeps every job and no two batches differ by more than one
  • challenges/parallel-luau.luau prints TEST PASS for all nine cases

The Course Runner prints this code when the test passes.