Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketplaceService = game:GetService("MarketplaceService")
- local Players = game:GetService("Players")
- local gamePassId = 1069329345
- local button = script.Parent
- button.MouseButton1Click:Connect(function()
- local player = Players.LocalPlayer
- pcall(function()
- MarketplaceService:PromptGamePassPurchase(player, gamePassId)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment