Module 14 · In your browser · challenge 2 of 3 in this lesson

multiplier returns 1 plus 0.5 for each rebirth

A code cell with the real Luau runner grades it. No Studio needed.

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 2, Builder

Challenge

Fix the three rules in the rebirth-rules cell: the multiplier, the level check and the reset of coins. A rebirth must cost the player their coins, or it is free money.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • multiplier returns 1 plus 0.5 for each rebirth
  • canRebirth allows level 10 and above
  • rebirth resets coins and level to 0, adds one rebirth and returns a new table
  • A call before level 10 returns the same table unchanged
  • All seven tests in rebirth-rules pass