Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MPS = game:GetService("MarketplaceService")
- local Id = 1155165380 -- Change this to your ID
- local Player = game.Players.LocalPlayer
- local Checkpoints = workspace:WaitForChild("Checkpoints")
- script.Parent.MouseButton1Click:connect(function()
- local Number = Player.leaderstats.Stage.Value
- if Number ~= #Checkpoints:GetChildren() then
- MPS:PromptProductPurchase(Player, Id)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement