Advertisement
3DCreator

SkipButton ServerScript

Mar 13th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local MPS = game:GetService("MarketplaceService")
  2. local ID = 1155165380 -- Change this to your ID
  3.  
  4. MPS.ProcessReceipt = function(receiptInfo)
  5.     print(receiptInfo.ProductId)
  6.     if receiptInfo.ProductId == ID then
  7.         local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  8.         player.leaderstats.Stage.Value = player.leaderstats.Stage.Value + 1
  9.         player.Character:WaitForChild("Humanoid").Health = 0
  10.         return Enum.ProductPurchaseDecision.PurchaseGranted
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement