Advertisement
3DCreator

SkipButton LocalScript

Mar 13th, 2021
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local MPS = game:GetService("MarketplaceService")
  2. local Id = 1155165380 -- Change this to your ID
  3. local Player = game.Players.LocalPlayer
  4. local Checkpoints = workspace:WaitForChild("Checkpoints")
  5.  
  6. script.Parent.MouseButton1Click:connect(function()
  7.     local Number = Player.leaderstats.Stage.Value
  8.     if Number ~= #Checkpoints:GetChildren() then
  9.         MPS:PromptProductPurchase(Player, Id)
  10.     end
  11. end)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement