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)
Just copy the id from roblox website, make a decal, paste id into texture from properties and it will give you the asset id