Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with MarketplaceService?

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

2 comments

0

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

0

Ok thanks.

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.