Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Developer Product Buyer?

Asked by 10 years ago

I need help making a brick so when you click it you can purchase a developer product.

1 answer

Log in to vote
1
Answered by 10 years ago
Hello! This should work for you.

local GamePass = 168606514

script.Parent.ClickDetector.MouseClick:connect(function(player)
Game:GetService("MarketplaceService"):PromptPurchase(player, GamePass)
end)
0
Thanks ShirtsDesigner 0 — 10y
Ad

Answer this question