HowToRoblox

SkipStageButtonHandler

Sep 9th, 2020
2,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local mps = game:GetService("MarketplaceService")
  2.  
  3. local devProductID = 1085757043
  4.  
  5.  
  6. local plr = game.Players.LocalPlayer
  7.  
  8.  
  9. local button = script.Parent
  10.  
  11.  
  12. button.MouseButton1Click:Connect(function()
  13.    
  14.     if plr.leaderstats.Stage.Value == "End" then return end
  15.    
  16.    
  17.     mps:PromptProductPurchase(plr, devProductID)
  18. end)
Add Comment
Please, Sign In to add comment