Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I sell tshirts from a gui?

Asked by 6 years ago

How do I sell tshirts from a gui?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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!

0
it's not working with a T-Shirt. Not a shirt, a T-Shirt. IfIWasntSoSwag 98 — 6y
0
You might be putting down the wrong ID then because it does work with a T-Shirt, I tested it. PyccknnXakep 1225 — 6y
0
You should use http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptPurchase. PromptProductPurchase is for Developer Products ONLY. XAXA 1569 — 6y
0
Oh ok. I'll change it. PyccknnXakep 1225 — 6y
0
I thought so, but then I thought it meant any product like Gamepasses, Tshirts, etc. PyccknnXakep 1225 — 6y
Ad

Answer this question