Module 6 · In Studio · challenge 2 of 2 in this lesson
The template holds dronesDowned = 0
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Add a saved field the ProfileStore way. Compare how many places you would have had to edit in the hand-rolled DataService. The test is challenges/profilestore.luau, and the solution is challenges/solutions/profilestore.md.
- Start from
- The game at milestone m10 (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("profilestore", "profilestore-new-field")in the server command bar. Copy the pass code from Output.
Done means
- The template holds dronesDowned = 0
- Reconcile adds dronesDowned to a profile saved before the field existed
- challenges/profilestore.luau prints TEST PASS for every check