Advertisement
Guest User

Gamepass script

a guest
Jan 25th, 2020
2,535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. local button = script.Parent
  2. local player = game.Players.LocalPlayer
  3. local Value = script.Parent.Gamepass
  4. button.MouseButton1Click:connect(function()
  5. game:GetService("MarketplaceService"):PromptGamePassPurchase(player, Value.Value)
  6. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement