How do I sell tshirts from a gui?
✓ ANSWER ACCEPTED
How do I sell tshirts from a gui?
1 answer
✓ Accepted answer
Next time, please be more descriptive.
local productId = 123456 --id here
script.Parent.MouseButton1Down:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, productId)
end)
Please accept my answer if this helped!
5 comments
0
it's not working with a T-Shirt. Not a shirt, a T-Shirt.
0
You might be putting down the wrong ID then because it does work with a T-Shirt, I tested it.
0
You should use http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptPurchase. PromptProductPurchase is for Developer Products ONLY.
0
Oh ok. I'll change it.
0
I thought so, but then I thought it meant any product like Gamepasses, Tshirts, etc.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Try using http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptPurchase instead.