roblox-monetization
/roblox-monetization
Konfiguruje przepustki, produkty dla deweloperów i idempotentny ProcessReceipt w Roblox, pilnując zakupów, które nie dostarczają nagrody.
- Autor
- gustavopiumbini ↗
- Repozytorium
- robloxcodingtoolkit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 29.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje przepustki, produkty dla deweloperów i idempotentny ProcessReceipt w Roblox, pilnując zakupów, które nie dostarczają nagrody.
Oryginalny opis (EN)
Game Passes, Developer Products, idempotent ProcessReceipt, Premium, purchase prompts and policy checks. Use for Robux shops, VIP, paid items/currency, or purchases that don't deliver.
Jak działa
- Game Pass (one-time, permanent)
- Developer Product (consumable)
- Other
Podgląd SKILL.md
---
name: roblox-monetization
description: Game Passes, Developer Products, idempotent ProcessReceipt, Premium, purchase prompts and policy checks. Use for Robux shops, VIP, paid items/currency, or purchases that don't deliver.
---
# Monetization
## Game Pass (one-time, permanent)
```lua
local MarketplaceService = game:GetService("MarketplaceService")
local VIP_PASS_ID = 0 -- real id from Creator Hub > Monetization > Passes
local function ownsPass(player: Player, passId: number): boolean
local ok, owns = pcall(MarketplaceService.UserOwnsGamePassAsync, MarketplaceService, player.UserId, passId)
return ok and owns
end
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
if purchased and passId == VIP_PASS_ID then
-- apply the benefit now (also check ownsPass on join, cached)
end
end)
```
Client prompts with `MarketplaceService:PromptGamePassPurchase(player, passId)`; the server applies benefits.
## Developer Product (consumable)
`ProcessReceipt` (one callback per game, server):
1. May run more than once per purchase → idempotent via `receiptInfo.PurchaseId`.
2. Return `PurchaseGranted` only after granting **and** saving.
3. Player gone, data not loaded, or save failed → `NotProcessedYet` (Roblox retries).
4. Never let it error.
```lua
local PRODUCTS: { [number]: (Player) -> () } = {
[0000000] = function(player) DataService:Update(player, function(d) d.Coins += 100 end) end,
}
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
local data = player and DataService:Get(player)
local grant = PRODUCTS[receiptInfo.ProductId]
if not (player and data and grant) then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
-- add `Purchases: { [string]: number }` to DataTemplate; keep only the last ~50 ids
if data.Purchases[receiptInfo.PurchaseId] then
return Enum.ProductPurchaseDecision.PurchaseGranted
end
if not pcall(grant, player) then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
DataService:Update(player, function(d) d.Purchases[receiptInfo.PurchaseId] = os.time() end)
-- ideally force a save before returning Granted
return Enum.ProductPurchaseDecision.PurchaseGranted
end
```
## Other
- Premium: `player.MembershipType == Enum.MembershipType.Premium`, `Players.PlayerMembershipChanged`.
- Prices: `MarketplaceService:GetProductInfo(id, Enum.InfoType.Product)` in pcall, cached; don't hardcode displayed prices.
- Studio purchases are simulated: test the full flow, including leaving mid-purchase.
- Paid random items (loot boxes) are restricted in some countries: `PolicyService:GetPolicyInfoForPlayerAsync(player).ArePaidRandomItemsRestricted`.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · gustavopiumbini/robloxcodingtoolkit | 100 | MIT |
| el4cteo/roblox-skills | 100 | MIT |
| tabooharmony/roblox-brain | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki a0d58d3e17d1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100roblox-monetization-compliance
Sprawdza zakupy w grze Roblox, czyli przepustki, produkty, ProcessReceipt i szanse losowania, zgodnie z zasadami szans obowiązującymi w 2026. - 100roblox-gamepasses
Wdraża przepustki, produkty dla deweloperów i subskrypcje w Roblox: prompty zakupu, realizację po stronie serwera i sprawdzanie własności. - 100roblox-monetize
Tworzy przepustki i produkty dla deweloperów w Roblox przez Open Cloud i wpisuje ich prawdziwe ID do konfiguracji Luau. - 90roblox-monetization-optimization
Optymalizuje strategię monetyzacji w Roblox: game passy, produkty deweloperskie, pakiety, UX sklepu, drabiny cenowe, eksperymenty konwersji, analiza przychodów i uczciwa monetyzacja bez pay-to-win. - 90scenario-roblox-monetization
Wspiera sprzedaż i live ops w grze Roblox: Developer Products, game passy, subskrypcje, ProcessReceipt, podwójne przyznania zakupów, skrzynki z szansami, reklamy z nagrodą, lejki AnalyticsService i testy A/B. - 90roblox-retention-monetization
Planuje retencję, progresję, live ops i uczciwą monetyzację w Roblox: nagrody dzienne, tempo treści, ekonomię, game passy, kosmetyki i wydarzenia.