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

Help with MarketplaceService?

Asked by 10 years ago

How would I go about things if I wanted a brick, when clicked, to allow them to buy a hat/shirt/whatever?

0
Idk how to do this but check out.Kestrel's free model it does exactly what you wanted it to do above. Kozero 120 — 10y
0
Ok thanks. Latedownload 0 — 10y

1 answer

Log in to vote
1
Answered by
MixCorp 70
10 years ago
ID = 0 --Shirt Id
if script.Parent.ClickDetector == nil then
C = Instance.new("ClickDetector",script.Parent)
end

script.Parent.ClickDetector.MouseClick:connect(function(Plr)
game:service("MarketplaceService"):PromptPurchase(plr, ID)
end)
0
Shirt ID Works with anything but Developer Products. If you want Developer Products use PromptProductPurchase(plr,ID) MixCorp 70 — 10y
Ad

Answer this question