So, with getting the ID from shirts or pants, it's usually Asset - 1, but not always. Is there a more reliable way of getting it than just subtracting 1? This is my script, but it doesn't load the clothing.
frame.btnPurchase.MouseButton1Click:Connect(function()
if chosenId > 0 and player.WalletBalance.Value >= price then
local assetSelect = game:GetService("MarketplaceService"):GetProductInfo(chosenId, Enum.InfoType.Asset)
local itemType = ""
if assetSelect.AssetTypeId == 11 then
itemType = "shirt"
else
itemType = "pants"
end
chosenId = assetSelect.AssetId - 1
end
end)

2 comments
But people who are non developers dont follow nor read the wiki which has the thing which tells u that decals need one to be subtracted
But I'm also getting the asset info. No big deal, I solved it.