Module 6

Data and multiplayer

Saving safely, ProfileStore, leaderboards, places and teleports, cross-server systems.

Start lesson 1: DataStores: saving without losing a single coin
Lessons
5
Time
6 hours
Practice
4 code cells, 47 questions
You finish with
Memory m10-memory
Two places m11-two-places
0 of 5 finished

Lessons

  1. 1DataStores: saving without losing a single coinSave Roblox player data safely by reading Beacon Yard's hand-rolled DataService, with UpdateAsync, session locks, failed-load protection, request budgets and when to save.Concept, 70 min
  2. 2ProfileStore: the library pros useReplace a hand-rolled Roblox DataStore layer with ProfileStore, covering install with Wally, sessions, session locking, autosave, the Mock store and a one-time migration of Beacon Yard's saved coins.Tool, 65 min
  3. 3Leaderboards and badgesAdd a global coin leaderboard to Beacon Yard with an OrderedDataStore and the PlayerList's Global view, and award badges safely with BadgeService and clear award rules.Concept, 65 min
  4. 4A lobby place: reserved servers and teleportsSplit Beacon Yard into a lobby place and a yard place, sending players to reserved servers with TeleportAsync, handling failures, and passing teleport data without trusting it.Project, 75 min
  5. 5MemoryStore and MessagingService: matchmaking across serversMatch Beacon Yard players across lobby servers with a MemoryStore queue and MessagingService, with the documented quotas worked out and the failure cases a real queue must survive.Project, 80 min

The game at the end of this module

Also works on m12-money, which finishes in a later module.