How would I go about things if I wanted a brick, when clicked, to allow them to buy a hat/shirt/whatever?
COMMUNITY QUESTION
Help with MarketplaceService?
1 answer
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)
1 comment
0
Shirt ID Works with anything but Developer Products. If you want Developer Products use PromptProductPurchase(plr,ID)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Idk how to do this but check out.Kestrel's free model it does exactly what you wanted it to do above.
Ok thanks.