#Can someone explain me how to know if a player bought a developer products

1 messages · Page 1 of 1 (latest)

desert perch
#

^

rapid haven
signal turret
desert perch
#

@signal turret @rapid haven BRO IM SO BAD AT ENGLISH YOU THINK I UNDERSTAND THAT DOCUMENTATION 😭 🙏

rapid haven
#

You can change the language on the page

desert perch
#

they're translator is not thatt good bruh

rapid haven
#

not my problem bro

desert perch
#

bro can't you expain it instead of sending the documentation

rapid haven
#

the documentation explains it

desert perch
#

bruh

#

bro thinks im C3 in english

rapid haven
#

I'm not english too bro

desert perch
#

you know how dev products work

desert perch
#

bruh

signal turret
#

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