Scripting•December 1, 2026•8 min read

ProfileService in Roblox Studio: ProfileStore & Save Testing

Identify ProfileService vs ProfileStore in Roblox Studio. Compare APIs, choose a library for new projects, and plan isolated player-data and migration tests.

Looking for ProfileService in Roblox Studio? ProfileService is Mad Studio’s community player-data library, not a built-in Roblox service. Its repository now directs new projects to ProfileStore. If you are following an older tutorial, identify the module before copying code: the two libraries use different methods.

Profile lifecycle diagram: acquire a session, edit server-owned data, then finish and release the session
Original lifecycle diagram. It illustrates a design concept, not a timing guarantee or a Studio screenshot.

ProfileService or ProfileStore: which one do you have?

Open the ModuleScript that your server code requires and compare its source with the ProfileService repository or ProfileStore repository. A ModuleScript can be renamed, so its Explorer label alone is not sufficient identification. Record where you obtained it and the revision you installed.

API fingerprints for reading an existing project
OperationProfileServiceProfileStore
Create a store handleProfileService.GetProfileStore(...)ProfileStore.New(...)
Begin working with a profilestore:LoadProfileAsync(...)store:StartSessionAsync(...)
Finish a sessionprofile:Release()profile:EndSession()
React to session lossprofile:ListenToRelease(...)profile.OnSessionEnd:Connect(...)

These are identification clues, not a search-and-replace migration recipe. Compare the complete lifecycle with the ProfileService API and ProfileStore API. In older code, a variable named ProfileStore can even mean a store object returned by ProfileService rather than the newer library.

Which library should a new Roblox project use?

The ProfileService maintainer says the older project is no longer supported and recommends ProfileStore for new work. That is a reason to start a new implementation from the current ProfileStore tutorial, rather than combining fragments from several generations of videos.

Existing games need a separate decision. Inventory and currency are part of the product players already rely on. Before changing the library, list every caller of the save system: rewards, spending, receipts, trades, teleports, admin tools, and shutdown handling. The migration is only as complete as that dependency list.

For a new project, place the reviewed ModuleScript on the server, such as under ServerScriptService, and require it from a server Script. A LocalScript that renders a coin counter should receive the display state; it should not own the persistent record. Roblox’s DataStore documentation establishes server-side access.

Why a session has a beginning and an end

A useful way to reason about a player record is ownership: which server is currently responsible for changing it? Consider a player moving between two servers. If both work from an old balance and later save independently, the final record can lose a legitimate change. A session-locking library coordinates access to that record.

The application still needs its own rules. For each reward, specify the server-validated action, the maximum grant, and whether repeating the request is allowed. A library handling record ownership does not decide whether the player earned an item. Keep those decisions in your gameplay code and test them separately.

The ProfileStore documentation describes an active session around Profile.Data, with periodic saving and a final save when the session ends. Treat acquisition failure and session loss as explicit application states. Decide what the player sees while data is loading and which actions become unavailable after ownership ends.

Keep a test environment separate from player saves

Roblox warns that Studio API access can reach the same stores as the live game and recommends a separate test version. Confirm the experience, store name, key format, and scope before a test that writes data. A differently named place in the same experience is not automatically an isolated data environment.

ProfileStore also documents a store.Mock mode with temporary, separate records. Use it to exercise application flow without treating the result as proof of durable storage. A second load in the same running test and a fresh server after shutdown answer different questions.

Write the environment identity into your test notes before running anything. For example: test experience, library revision, store name, sample key, initial balance, expected balance, and whether the run uses mock or persistent data. Use synthetic test records rather than a player’s real account history.

A migration review before changing an existing game

The maintainer’s migration notes describe compatibility with existing ProfileService records, but also identify a rollback caveat after using ProfileStore messaging. Read that section for your installed revision. Compatibility of stored records is not proof that your application’s loading, reward, or release code is compatible.

  1. Map the current identity. Record the store name, optional scope, and exact player-key expression. A changed prefix can make existing progress appear absent because the application is looking elsewhere.
  2. Capture representative shapes. Use synthetic records for a new player, a returning player, and an older schema. Include a missing optional field and an unexpected value type.
  3. Trace lifecycle callbacks. List the behavior on successful load, failed acquisition, player departure during loading, session loss, and shutdown.
  4. Plan transformations explicitly. Adding a missing default, renaming a field, and converting an inventory structure are different operations. Test each intended transformation and preserve unrelated values.
  5. Evaluate rollback before new features. Decide how to restore the previous implementation and what data-format or messaging changes could prevent that path.
  6. Release only after the isolated checks pass. Keep logs and compare observed values with written expectations. A successful first join is only one test case.

Six tests to run before release

Record observed results in an isolated test environment
ScenarioQuestion to answerEvidence to record
First joinDoes a new record get the intended defaults?Initial fields and values
Leave and rejoinDoes an earned change survive a fresh server?Before/after values and server identity
Departure during loadDoes the application abandon work for a player who left?Load outcome and cleanup log
Session ends unexpectedlyDo reward and spend paths stop using that profile?Attempted action and rejected result
Older recordAre intended defaults or transformations applied without losing existing values?Field-by-field comparison
Acquisition or save failureIs failure visible rather than presented as a successful fresh start?Error, player state, and retry outcome

Download the plain-text profile test record to capture these checks. It executes no code and connects to no service. For multiplayer setup, use our Studio multiplayer testing guide.

Common setup mistakes to identify

  • “New is not a valid member of ModuleScript.” Check whether the variable refers to the ModuleScript Instance or the value returned by require. Also verify that you installed the library whose API you are calling.
  • A new player works, a returning player fails. Compare the stored shape with current code assumptions. Changing a default table does not by itself explain what should happen to an existing value of the wrong type.
  • The UI resets but the record did not. Trace the data-to-display update separately from the persistence layer. A label is not evidence of the stored value.
  • Progress seems missing after a rename. Compare the old and new environment, store, scope, and key before writing replacement data.

For the broader save-system contract, continue with the DataStore script guide. For the display layer, see leaderstats. Keep the profile as the source of persistent state and define how display values are updated.

Prototype the game before connecting persistent progress

In Obby, start with one room, five collectibles, and a visible count. Verify collection and reset behavior first. Then write a separate save-system contract describing what should survive a rejoin, who can change it, and how failures are shown. Generated code needs review against the exact library revision you choose.

Sources and scope

Reviewed December 1, 2026 using the linked maintainer repositories and documentation, plus Roblox’s DataStore guidance. The diagrams, review sequence, and test record are original planning aids. No live player records were accessed or changed, and no native Roblox migration or persistence test was performed for this article.

Build this in Obby

Ready to build your own version?

Describe the game and Obby builds a playable Roblox prototype you can test and export. 100% free, no credit card required.

Opens Obby Studio with this idea ready to send.

Frequently Asked Questions

Is ProfileService built into Roblox Studio?▾

No. ProfileService is Mad Studio’s community ModuleScript library. Roblox’s built-in persistence service is DataStoreService.

Should a new Roblox game use ProfileService or ProfileStore?▾

The ProfileService repository recommends ProfileStore for new projects and says the older project is no longer supported. Existing games should evaluate dependencies and test before migrating.

Can I replace ProfileService methods with ProfileStore methods?▾

The API names differ, but renaming calls alone does not validate a migration. Review data identity, session callbacks, existing records, and rollback behavior with the maintainer’s documentation.

Does a mock profile test prove that data persists?▾

No. Mock storage is temporary and separate. It is useful for application-flow tests; durable storage and cross-server behavior require their own isolated tests.

Why does New is not a valid member of ModuleScript appear?▾

Check whether you are calling a method on the ModuleScript Instance instead of its required module value. Also confirm that the code and installed library use the same API.