Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local player = game.Players.LocalPlayer
- local devProductID = 2815910820 -- change it with your ID
- local buyButton = script.Parent
- buyButton.MouseButton1Click:Connect(function()
- MarketPlaceService:PromptProductPurchase(player, devProductID)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement