Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui = script.Parent
- local btn = gui.PromptGamepass
- local gamepassId = "26064990"
- local plr = game.Players.LocalPlayer
- local ms = game:GetService("MarketplaceService")
- btn.Activated:Connect(function()
- ms:PromptGamePassPurchase(plr, gamepassId)
- end)
- if ms:UserOwnsGamePassAsync(plr.UserId, gamepassId) == true then
- btn.Visible = false
- end
Advertisement
Add Comment
Please, Sign In to add comment