ProfileStore
For games that keep players' data with ProfileStore.
On this page
Set the data path to Data
ProfileStore keeps each player’s data under
Data, beside its own fields. In Atomo, open the game’s Settings and set Data path toData. Searches, the dashboard and the API then see the player’s data alone.Start Atomo
Server script local HttpService = game:GetService("HttpService") local ServerStorage = game:GetService("ServerStorage") local Atomo = require(ServerStorage.Atomo) local found, secret = pcall(function() return HttpService:GetSecret("atomo_report") end) Atomo.start({ url = "https://api.useatomo.com", key = if found then secret else nil, })Report when a session starts, and after each save
Luau local profile = PlayerStore:StartSessionAsync(key) if profile then Atomo.report("PlayerData", profile.Key, { Data = profile.LastSavedData }, profile.KeyInfo) profile:AddUserId(player.UserId) profile:Reconcile() profile.OnAfterSave:Connect(function(saved) Atomo.report("PlayerData", profile.Key, { Data = saved }, profile.KeyInfo) end) endThe first report comes before
Reconcile, so Atomo has what was saved and not the template’s defaults. Each one wraps the data in{ Data = … }, as it sits in the data store.Report removals
Luau if PlayerStore:RemoveAsync(key) then Atomo.removed("PlayerData", key, nil) endProfileStore gives no key info for a removal, so it is told without one, and dated when
removedis called.
Why the data path matters
The module reports only Data, while a full sync reads the whole value from Roblox, ProfileStore’s own fields included. With the data path set to Data, both are the same save. Without it, a reported save and a synced copy of one version differ, and Atomo keeps both and marks the record to be checked.
Studio and the mock
Saves made through PlayerStore.Mock aren’t in Roblox, so they aren’t reported: the module leaves them out. To try the real thing in Studio, see Try it in Studio.