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

challenges/work/ftue_machine.luau maps Analytics.luau's five step names to indices 1..5 and unknown names to 0

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 Beacon Yard's five-step FTUE state machine and funnel leak detector in challenges/work/ftue_machine.luau, then verify with game.ServerScriptService.RunGameTests:Invoke("ftue", "ftue-state-machine").

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

Done means

  • challenges/work/ftue_machine.luau maps Analytics.luau's five step names to indices 1..5 and unknown names to 0
  • shouldSkip returns true at or past step 5; advance moves strictly forward even when steps are skipped
  • activeCue implements immediate cues for steps 1, 2 and 4, a timed hint on step 3, and none for veterans
  • biggestLeak takes { step, players } rows and returns the worst step and its drop as a fraction from 0 to 1
  • RunGameTests:Invoke("ftue", "ftue-state-machine") passes all 10 checks

The Course Runner prints this code when the test passes.