Advertisement
Sungmingamerpro13

DevProduct [Script]

Jan 12th, 2025 (edited)
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.50 KB | None | 0 0
  1. local id = script.RespawnID.Value
  2. local id2 = script.CoinsID.Value
  3.  
  4. game.MarketplaceService.ProcessReceipt = function(receiptInfo)
  5.     local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  6.     if not player then
  7.         return Enum.ProductPurchaseDecision.NotProcessedYet
  8.     end
  9.     if receiptInfo.ProductId == id then
  10.         player:LoadCharacter()
  11.     elseif receiptInfo.ProductId == id2 then
  12.         player.Coins.Value = player.Coins.Value + 10
  13.     end
  14.     return Enum.ProductPurchaseDecision.PurchaseGranted
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement