Module 4 · In Studio · challenge 3 of 3 in this lesson
A part tagged BonusCoin, not Coin, with CoinValue 15, parented to Workspace.Yard
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Add one bonus coin worth 15 with its own tag and its own respawn timer, without changing the six pad coins.
- 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("coins", "coins-bonus")in the server command bar. Copy the pass code from Output.
Done means
- A part tagged BonusCoin, not Coin, with CoinValue 15, parented to Workspace.Yard
- Collecting it pays 15 through DataService.addCoins with the same 12-stud rule
- It respawns after 8 seconds, or TestBonusRespawnSeconds when that is set
- The test prints TEST PASS bonus_tagged, bonus_pay, bonus_respawn and pad_respawn_separate