I want to make a buy gui, so that when someone clicks a button they can buy the clothing item. I don't want to use a free model, because I designed my own mannequin.
✓ ANSWER ACCEPTED
How do I create a purchase gui?
1 answer
✓ Accepted answer
This snippet of code will prompt the user to purchase the product of your choosing when the block your script is in is clicked:
local ProductID = 123456789
Instance.new("ClickDetector", script.Parent)
script.Parent.ClickDetector.MouseClick:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, ProductID)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
