Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = script.RespawnID.Value
- local id2 = script.CoinsID.Value
- game.MarketplaceService.ProcessReceipt = function(receiptInfo)
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- if not player then
- return Enum.ProductPurchaseDecision.NotProcessedYet
- end
- if receiptInfo.ProductId == id then
- player:LoadCharacter()
- elseif receiptInfo.ProductId == id2 then
- player.Coins.Value = player.Coins.Value + 10
- end
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement