Prompt · DataStore saving · Updated November 2026
DataStore saving with session locking
ProfileStore saving in one module: session lock, reconcile, autosave, a proper leave and a rejoin test.
The prompt
Add saving to my game with ProfileStore (insert the Creator Store module by loleris if it is missing). One module, ServerScriptService.Modules.PlayerData, owns every read and write: a TEMPLATE with Coins, Unlocks, Equipped and PurchaseIdCache, StartSessionAsync with a Cancel when the player leaves, Reconcile, AddUserId, kick on a failed session, EndSession on PlayerRemoving, and a WaitFor the remotes call. Use Store.Mock in Studio so tests do not touch live keys. Remind me to turn on Studio access to API services. Test: earn coins, stop, start again, confirm they are back. Screenshot the leaderboard after the rejoin.The button opens Forge with this prompt already in the message box. Nothing is sent until you press Send, and the credit price shows first. Forge needs a Windows PC with Roblox Studio and the free Forge Bridge; Mac support is planned.
What Forge builds
- ProfileStore inserted from the Creator Store (verified creator), never retyped by hand.
- A single PlayerData module; nothing else in the game touches DataStoreService.
- A session lock, so two servers never hold one player's data and items cannot dupe.
- A template with PurchaseIdCache so ProcessReceipt can be idempotent later.
- A rejoin test that proves persistence, with Mock mode in Studio.
Typical credits
On Sonnet 5.5 this prompt usually runs 120 to 450 credits ($1.20–4.50), more if the playtest catches mistakes that need fixing. One credit is one cent, the price is shown before each message, and credits never expire. Opus 5.5 and Fable 5.2 cost more per message and are worth it for a stubborn bug, not for a first build.
| What you ask for | Typical credits |
|---|---|
| This prompt | 120–450 |
| One build step (a button, a HUD fix, a lighting pass) | 20–150 credits ($0.20–1.50) |
| One game system (a shop, saving, a round loop) | 100–600 credits ($1–6) |
| A complete game, following a guide's full sequence | 2,500–6,000 credits ($25–60) |
Full ranges, packs and the optional membership are on the pricing page. New accounts get free trial credits when they first pair the Bridge (Roblox accounts older than 30 days). No card is needed.
How to run it
- Open your place in Roblox Studio and turn on Assistant ▸ ⋯ ▸ Manage MCP Servers ▸ Enable Studio as MCP server.
- Run the Forge Bridge on the same PC and confirm the pairing in the Forge web app; the sidebar shows your place name in green.
- Press Build this in Forge above (or copy the prompt and paste it), read the price, press Send.
- Forge reads your place first, builds, playtests, reads the console and sends a screenshot. Reply with changes; it remembers your place between messages.
Questions
I already have a DataStore script. Will Forge replace it?
No. Forge reads your place first; if you have ProfileService or your own module, it keeps it and matches its API. It never migrates live saves without asking.
What if ProfileStore cannot be inserted?
Forge falls back to a hand-rolled module with a real session lock in UpdateAsync, the same public API, from its datastores-fallback playbook.
Related prompts and guides
- Egg hatching with weighted odds: Eggs with weighted pet tables, odds shown on the egg, a server-side roll with luck, a hatch reveal and a paid-random policy check.
- VFX pass for pickups, purchases and hatches: ForgeFX installed once and wired to the moments that matter: pickups, buys, hatches, hits, rebirths, with budgets and reduced motion.
- Bright cartoon lighting look: The simulator and tycoon look in one pass: midday sun, soft haze, bloom, warm colour correction, clouds, with old effects cleared.
- Roblox DataStore script with session locking: the full step-by-step sequence this prompt belongs to.
- Pricing: packs from $10, what a whole game costs, membership perks.
- All prompts: every genre and system in the library.