#Can someone explain me how to know if a player bought a developer products
1 messages · Page 1 of 1 (latest)
just read up on the documentation it explains it well https://create.roblox.com/docs/production/monetization/developer-products
@signal turret @rapid haven BRO IM SO BAD AT ENGLISH YOU THINK I UNDERSTAND THAT DOCUMENTATION 😭 🙏
You can change the language on the page
they're translator is not thatt good bruh
not my problem bro
bro can't you expain it instead of sending the documentation
the documentation explains it
I'm not english too bro
you know how dev products work
bruh
local DEV_PRODUCT_ID = 123456789 -- replace with yours
MarketplaceService.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == DEV_PRODUCT_ID then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if player then
player.leaderstats.Coins.Value += 100
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
return Enum.ProductPurchaseDecision.NotProcessedYet
end
just an example you can replace the leader stats with whatever of course