MaxproGlitcher

PromptPurchase LocalScript

Oct 3rd, 2026 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local MarketplaceService = game:GetService("MarketplaceService")
  2. local Players = game:GetService("Players")
  3. local gamePassId = 1069329345
  4.  
  5. local button = script.Parent
  6.  
  7. button.MouseButton1Click:Connect(function()
  8. local player = Players.LocalPlayer
  9.  
  10. pcall(function()
  11. MarketplaceService:PromptGamePassPurchase(player, gamePassId)
  12. end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment