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