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

particlesPerSecond multiplies the pad rate by the pad count

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

Open

Level 3, Professional

Challenge

Fix the particle count in challenges/performance_work.luau. Grade the change on m14-ship: press Play and run this in the server command bar.

luau
game.ServerScriptService.RunGameTests:Invoke("performance")
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 run game.ServerScriptService.RunGameTests:Invoke("performance") in the server command bar. Copy the pass code from Output.

Done means

  • particlesPerSecond multiplies the pad rate by the pad count
  • Six pads give 42, one pad gives 22, a lamp alone gives 8
  • challenges/performance.luau prints TEST PASS yard_particles, one_pad and lamp_only

The Course Runner prints this code when the test passes.