Quickstart

From an invite to your first player's save in Atomo, in about ten minutes.

On this page

Before you start

  • A Roblox experience you can edit in Studio, and that saves players with data stores (plain, ProfileStore or your own system).
  • Owner of the experience, or of its group: only they can make its secrets, where the key goes.
  • An invitation to Atomo. It is in early access, and joining is by invitation for now: write to us address not set with the email address to invite.

Set up

  1. Make your account

    Open the dashboard’s sign-up (opens a new tab), and give your name, the address that was invited and a password of 10 characters or more. Enter the 6-digit code emailed to you: it works for 5 minutes.

  2. Join with your invite code

    Paste the code under Invite code and press Join. Codes work for 7 days, and only for the address they were made for.

    Owners and admins add a passkey or two-factor next: the dashboard asks for one before anything else.

  3. Connect the game

    On Games, press Connect a game and fill in:

    • Universe ID: the experience’s, not a place’s. In Studio, print(game.GameId) in the command bar shows it.
    • Data store: the name your game passes to GetDataStore, such as PlayerData.
    • Scope: leave it as global unless your game names one.
    • Key pattern: how your keys are named, with {user} where the user ID goes, such as Player_{user}.

    Using ProfileStore? In the game’s Settings, set Data path to Data.

  4. Make a reporting key

    On the game’s Overview, under Reporting, press Make a key and copy it. It is shown once.

  5. Keep the key in a secret, and allow HTTP

    In the Creator Dashboard (opens a new tab), open the experience, then Secrets, Create Secret: name it atomo_report, paste the key, and give api.useatomo.com as its domain.

    In Studio, File, Experience Settings, Security: turn on Allow HTTP Requests.

  6. Put the module in ServerStorage

    Atomo.rbxmxModuleScript Atomo, with Queue inside · 37 KBDownload

    In Studio’s Explorer, right-click ServerStorage, choose Insert from File and pick the file. It adds a ModuleScript called Atomo, with Queue inside it.

  7. Report each load and save

    In a Script in ServerScriptService: start Atomo once, then report each time a player’s data loads or saves.

    local DataStoreService = game:GetService("DataStoreService")
    local HttpService = game:GetService("HttpService")
    local ServerStorage = game:GetService("ServerStorage")
    local store = DataStoreService:GetDataStore("PlayerData")
    
    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,
    })
    
    local function load(key)
        local ok, data, info = pcall(function()
            return store:GetAsync(key)
        end)
        if not ok then
            return nil
        end
        Atomo.report("PlayerData", key, data, info)
        return data
    end
    
    local function save(key, data)
        local ok, saved, info = pcall(function()
            return store:UpdateAsync(key, function()
                return data
            end)
        end)
        if ok then
            Atomo.report("PlayerData", key, saved, info)
        end
    end
    

    The lit lines are Atomo’s. Your game decides when to call load, save or begin, as it does now.

  8. See the first save

    Join the experience on Roblox. Within about 15 seconds the game’s Overview turns from the set-up card into the game’s page, and the player is in Records.

    To try it in Studio first, see Try it in Studio: Studio needs the key as a local secret, and studio = true.

Next

  • Every place that saves should report, including where your game changes an offline player’s data: Report saves.
  • Bring in players who haven’t joined since: a full sync reads every key from Roblox (Sync and Roblox keys).
  • Find players by what is in their data: Search language.