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.
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)