I found a script and model that sells clothes, and i tried changing it to how i need it to work and something is wrong. Basically i'm trying to get it to buy the clothes once you press a gui button.
local Buy = script.Parent local ITEM_ID = 887227764 -- Here put the ID of the clothes you want to sell Buy.MouseButton1Click:Connect(Clicked) game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
You don't have the event set up correctly
local Buy = script.Parent local ITEM_ID = 887227764 -- Here put the ID of the clothes you want to sell Buy.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID) end)
Im guessing p is the player and Buy is the button