Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local market = game:GetService("MarketplaceService")
- local players = game:GetService("Players")
- local product = 1275933279
- local function processReciept(Info)
- local plr = players:GetPlayerByUserId(Info.PlayerId)
- if not plr then
- return Enum.ProductPurchaseDecision.NotProcessedYet
- end
- if plr then
- local char = game.Workspace:FindFirstChild(plr.Name)
- local leaderstats = players:GetPlayerFromCharacter(char).leaderstats
- local stage = leaderstats.Stage
- stage.Value = stage.Value +1
- char:MoveTo(game.Workspace:FindFirstChild("Target"..stage.Value).Position)
- print("granted")
- end
- end
- market.ProcessReceipt = processReciept
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement