Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --don't blame me if it has an error because of where you've placed it
- local MarketplaceService = game:GetService("MarketplaceService")
- local Players = game:GetService("Players")
- local productID = 000000000
- local button = script.Parent
- button.MouseButton1Down:Connect(function()
- local player = Players.LocalPlayer
- MarketplaceService:PromptProductPurchase(player, productID)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement