https://gyazo.com/013be0156065545c7b1275b0aeb77edc?token=cd72a0b72fb5deac53648107e9f978ae
https://gyazo.com/3e2f5bcf95255c81b5b7140dfb89bed4
local shirtId = 1361887013 script.Parent.ClickDetector.MouseClick:connect(function(player) Game:GetService("MarketplaceService"):PromptPurchase(player, shirtId) end)
local pantsId = 1361888033 script.Parent.ClickDetector.MouseClick:connect(function(player) Game:GetService("MarketplaceService"):PromptPurchase(player, pantsId) end)
If you are using a gui you have to use something like this (it has to be an image button!) and it has to be a localscript inside the button
button = script.Parent local pantsId = 1361888033 button.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptPurchase(player, pantsId) end)