Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- service = game:GetService("MarketplaceService")
- id = 20026140
- player = game.Players.LocalPlayer -- Points to the local player in localscripts, much cleaner than doing .Parent fifty times
- script.Parent.MouseButton1Down:connect(function()
- service:PromptProductPurchase(player, id)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement