Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || GAMEPASS HANDLER || CHANGE ID!
- ]]
- local MPS = game:GetService("MarketplaceService")
- local GS = game:GetService("GamePassService")
- local player = game:GetService("Players").LocalPlayer
- local id = 0
- local function HandlePurchase()
- if GS:PlayerHasPass(player, id) then
- print(player.Name.. " already has the gamepass!")
- else
- print(player.Name.. " doesn't already have the gamepass!")
- MPS:PromptGamePassPurchase(player, id)
- end
- end
- script.Parent.MouseButton1Click:Connect(HandlePurchase)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement