Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- —- Change ID to your gamepass ID. To use this, make in StarterGui a TextButton, then a LocalScript and paste this into it. Remember to change the ID to your gamepass ID otherwise it won’t work.
- local productId = ID -- change to your gamepass ID
- local player = game.Players.LocalPlayer
- script.Parent.MouseButton1Click:connect(function() -- Don't change
- Game:GetService("MarketplaceService"):PromptGamePassPurchase(player, productId)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement