Module 11 · In Studio · challenge 1 of 2 in this lesson
Build and grade Project 3 in Studio
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Extend PassService.luau, ShopLabels.luau and Strings.csv in your m14-ship game, then run challenges/capstone_cosmetic_trail.luau in Studio. Solution: challenges/solutions/capstone-trail-ui.md.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("capstone_cosmetic_trail", "capstone-cosmetic-trail")in the server command bar. Copy the pass code from Output.
Done means
- PassService.setTrail(player, true) sets the TrailPass attribute to true and attaches an enabled Trail named PassTrail with both attachments
- Calling DataService.applySpeed(player) with TrailPass enabled leaves Humanoid.WalkSpeed identical to before
- PassService.setTrail(player, false) sets TrailPass to false and disables or removes PassTrail
- ShopLabels.source()['shop.trail'] is non-empty and LocalizationService.BeaconStrings has a shop.trail row with en, fr and es entries
- challenges/capstone_cosmetic_trail.luau prints TEST PASS for all five checks