--- name: roblox-monetization description: "Use when adding, fixing or auditing Roblox purchases: passes, Developer Products, receipts, subscriptions, paid random items, policy." when_to_use: "Also when a purchase prompt fails, Robux is charged but nothing arrives, a pass perk needs a rejoin, free trial abuse, odds disclosure, PolicyService, regional prices, refunds, Robux transfers, Creator Rewards, or like/favourite/group rewards." last_reviewed: 2026-11-29 sources: - https://create.roblox.com/docs/reference/engine/classes/MarketplaceService - https://create.roblox.com/docs/production/monetization/passes - https://create.roblox.com/docs/production/monetization/developer-products - https://create.roblox.com/docs/production/monetization/shop - https://create.roblox.com/docs/production/monetization - https://create.roblox.com/docs/production/monetization/paid-random-items - https://create.roblox.com/docs/reference/engine/classes/PolicyService - https://create.roblox.com/docs/production/monetization/subscriptions - https://create.roblox.com/docs/production/monetization/regional-pricing - https://create.roblox.com/docs/production/monetization/robux-transfers - https://create.roblox.com/docs/production/monetization/roblox-plus - https://create.roblox.com/docs/creator-rewards - https://create.roblox.com/docs/production/monetization/engagement-based-payouts - https://create.roblox.com/docs/production/monetization/developer-exchange - https://create.roblox.com/docs/production/monetization/18-plus-devex-rate - https://create.roblox.com/docs/reference/engine/classes/AvatarEditorService - https://create.roblox.com/docs/reference/engine/classes/GroupService - https://create.roblox.com/docs/reference/engine/classes/Player - https://devforum.roblox.com/t/introducing-pass-free-trials/4995943 - original --- # Roblox Monetization ## When to Load Purchases, receipts, prices, paid random items, purchase policy, platform payouts, and rewards for social actions (like, favourite, group). Durable idempotent grants: `roblox-data` §3/§4. Creating products and passes from an agent: `open_cloud_invoke` (`roblox-studio-mcp` §2). Spoofed purchase remotes: `roblox-security`. Checked against the creator-docs mirror of 2026-11-25 unless marked "field". ## Traps (symptom -> cause -> fix) - Prompt never completes, many failed attempts, no sales -> pass **off sale** (no price / sale not enabled), or the ID isn't this game's pass. Check `GetProductInfoAsync(id, Enum.InfoType.GamePass)` `IsForSale` and `PriceInRobux` (or Creator Hub > Passes > sales settings), put it on sale, and **hide or disable the Buy button** while `IsForSale` is false (§1). - Works in Studio, fails live -> Studio's mocked purchases don't check that the pass belongs to the current game; live, prompting another game's pass fails even if you own both. The ID is the pass `TargetId`, not its asset ID or `ProductId` (§1). - Free-trial players keep rewards -> since **2026-12-02** starting a trial fires `PromptGamePassPurchaseFinished` with success **true**, and `UserOwnsGamePassAsync` is true during the trial. Permanent grants (currency, items, saved flags) only when `GetPassOwnershipAsync(player, passId).Owned` is true (§1). - Perk only after rejoin -> ownership checked once at `PlayerAdded`. Also apply on the server's `PromptGamePassPurchaseFinished`; the engine cache updates when it fires. An outside-the-game purchase mid-session can take several minutes to show (§1). - Robux charged, nothing granted -> no `ProcessReceipt` (or bound handler) means receipts are **auto-acknowledged** and can't be recovered; returning `PurchaseGranted` before the grant is durable loses it on a crash. Grant from the receipt only, never from `PromptProductPurchaseFinished` (§2). - Duplicate grants -> the same receipt can run on **two servers at once** (player joins a second server before the first returns), and a `PurchaseGranted` can fail to record, so it is delivered again. Key the grant on `PurchaseId` in one atomic save (`roblox-data` §3) (§2). - Spin bought with Robux-bought gems/keys/tickets, or a sold luck potion/pity/rate-up -> **paid random item**: show every outcome with numerical odds before the spend (boosted odds live while a boost runs), and branch on `ArePaidRandomItemsRestricted` per player (§3). - "Like / Favourite the game" reward ticks -> scripts **can't read** whether a player liked or favourited an experience. `AvatarEditorService:GetFavoriteAsync`/`PromptSetFavorite` take an `Enum.AvatarItemType` (Asset or Bundle) only. Only group membership is verifiable (server `Player:IsInGroupAsync`). Pay like/favourite as honour rewards once ever, or drop them (§5). - Group joined but server still says no -> `IsInGroupAsync` caches per peer; `GroupService:PromptJoinAsync` clears the cache only on the **client** that showed it. Re-check on the server after a delay; don't treat the first negative as final (§5). - "Premium Payouts" or engagement payouts -> deprecated **2025-07-24**, replaced by Creator Rewards; nothing to grant or process in game (§6). ## Limits | Thing | Value | |---|---| | Free trial | one per player per pass, one active at a time, one session; continues if a system error ends it and they rejoin within 1 h; new passes default off | | Robux transfer | 10-500 Robux per transaction; sender must be a Roblox Plus subscriber; game earns 10%, DevEx-eligible, no Roblox fee | | `GetUsersPriceLevelsAsync` | 1-1000 (1000 = full price) | | `GetPolicyInfoForPlayerAsync` | errors past 100 calls in flight; client can only query the local player | | Creator Rewards | 5 Robux per Active Spender with 10+ min, if among their first 3 games that day; Audience Expansion 35% of first $100 over 60 days, needs avg 100+ DAU for 60 days; 60-day hold | | DevEx | 0.0038 USD per Earned Robux (0.0035 before 2025-09-05); U.S. 18+ rate 0.0054 from 2026-06-08 | ## Review checklist (symptom -> check -> fix) - Purchase audit -> grep the place for every `ProcessReceipt =` assignment (a later assignment silently replaces the earlier handler; the docs say set it once, in one server Script) and every product ID; one router keyed by product ID. - Displayed odds -> generated from the server's weight table, sum to exactly 100% (or rounded with the docs' disclaimer); pity counters enforced on the server (field: several kits promised pity nothing enforced). - Retired products -> developer products can't be deleted: set them off sale, never re-create one under the same name (field). - Dev vs prod universe -> a developer product sells only in the universe that owns it; Managed Pricing was refused on a dev universe (`InvalidManagedPricing`), so prices there stay at list (field). One generated ID module per universe. - Refunds -> Roblox revokes passes automatically; Developer Product benefits are yours to reverse, keyed on the transaction ID (Transaction Refunded webhook: `roblox-cloud` §2). ## 1. Passes and free trials - Server: check `UserOwnsGamePassAsync` at join and on `PromptGamePassPurchaseFinished`; apply benefits from that live check, don't save them. A failed call is "unknown", never "doesn't own". After a purchase the player's first entry into a server always returns true. - `GetPassOwnershipAsync(player, passId)`: `.Owned` = bought, `.Active` = bought or in trial (matches `UserOwnsGamePassAsync`), `StartTime`/`EndTime` while a trial runs. Client: local player only. Documented on the passes page, not yet in the class reference (2026-11-25). - No event fires when a trial ends; ownership just returns false. - Trials start only from the Shop's **Try** button (`MarketplaceService:OpenShop(player)`); no API starts one from your own UI (staff, free-trials thread, 2026-11-18). ```luau local ok, info = pcall(MarketplaceService.GetPassOwnershipAsync, MarketplaceService, player, passId) if not ok then return end -- unknown: retry later, grant nothing if info.Owned then grantPermanent(player) end -- bought if info.Active then applyLiveBenefit(player) end -- bought or trial; unsaved ``` ## 2. Developer Product receipts - `ProcessReceipt` has no time-based retry and no timeout: a `NotProcessedYet` receipt returns only on that player's next purchase or rejoin, in non-deterministic order, and only while they are on the server. - `BindReceiptHandler(Enum.ReceiptType.DeveloperProduct, handler, filter?)` returns `Enum.ReceiptDecision` (`Processed`/`NotProcessedYet`), not `ProductPurchaseDecision`. A matching bound handler wins; unmatched receipts fall through to `ProcessReceipt`. - Listed products also sell outside the game, so the buyer may join later. A product whose `ProcessReceipt` Roblox flags loses only outside-the-game sales until "Mark as fixed" (Creator Hub > Monetization > Shop). ## 3. Paid random items and PolicyService - Paid random items: anything random bought with Robux directly or with currency bought with Robux (capsules, eggs, chests, random-duration potions, combination/synthesis, luck boosts, pity, rate-up). Free randomized rewards from play need no disclosure. - Disclosure, before purchase: all outcomes and actual percentage odds summing to 100%. Too many to show: an "Info"/"Details" button; a bare (i) icon is **not** enough. If an outcome can be won only once, update the remaining odds for that player. - `PolicyService:GetPolicyInfoForPlayerAsync(player)` (pcall). `ArePaidRandomItemsRestricted` true: apply one treatment on every purchase path: free earnable path, disclosed fixed sequence, direct purchase priced at expected value, hide the feature, block with a message, or move the player away. Odds alone don't satisfy it. If the lookup fails, refuse the paid path. - `IsPaidItemTradingAllowed` false: no trading of paid items or paid random outcomes. `IsEligibleToPurchaseSubscription` / `IsEligibleToPurchaseCommerceProduct` gate those products. ## 4. Presentation rules (Roblox guidelines) - Discounts must be genuine (not "on sale" forever at the same price) and fair (not so short that they pressure). - Never claim low stock or limited time when untrue; never use a countdown that is inaccurate or restarts for the same item. - Avoid pushy copy for minors ("GET IT NOW", "LAST CHANCE") -> "View Item", "See Price", "Open Shop". ## 5. Social rewards - Like and favourite of an experience: no API reports either. Group: verify on the server with `Player:IsInGroupAsync(groupId)` (supersedes `IsInGroup`); `GroupService:PromptJoinAsync` returns `Enum.GroupMembershipStatus` on the client, which the server must not trust. Pay once ever, keyed in the save (`roblox-data` §4). - Field: re-check a server negative with `GroupService:GetGroupsAsync(userId)` or after about a minute; gate social rewards on account age and rate-limit the claim remote. ## 6. Subscriptions, transfers, prices, platform payouts - Subscriptions: `GetUserSubscriptionStatusAsync(player, id)` on the server; `IsSubscribed` is false while the first payment is **processing or failed** (not a cancellation); `IsRenewing` false is not loss of the paid term. Re-query on `Players.UserSubscriptionStatusChanged`. - Robux transfers: server-only `PromptRobuxTransferAsync(sender, receiverUserId, amount)`; bind separate handlers for `RobuxTransferSender` and `RobuxTransferReceiver`, dedupe on `PurchaseId`, grant only after the receipt. Receipts arrive on whichever server the user is in, or on next join. - Managed Pricing: prices change per region inside and outside the game; show prices from `GetProductInfoAsync` (`PriceInRobux`), test with the dynamic price check tool. Trades/gifts: `GetUsersPriceLevelsAsync` at join, never cached across sessions. Price tests: Roblox Experiments (`roblox-growth` §5). - Creator Rewards' Audience Expansion attributes new/returning users via your **Share Link**, direct link, or name search. - U.S. 18+ DevEx rate needs R15 (or custom nonhuman) characters 100% of active playtime: set Avatar Settings to **R15 Only**.