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
- Button.MouseButton1Click:Connect(function()
- local GamepassId = Button:FindFirstChild("GamepassId")
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement