Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local Player = game.Players.LocalPlayer
- for i, Button in pairs(script.Parent:GetChildren()) do
- if Button:IsA("ImageButton") or Button:IsA("TextButton") then
- local GamepassID = Button:FindFirstChild("ID")
- MarketPlaceService:PromptGamePassPurchase(Player, GamepassID.Value)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement