Input table contained an invalid asset id!

I am trying to take a piece of layered clothing from the catalog and apply it using HumanoidDescription, but this message is appearing when I try to apply it. I can’t find any documentation on this message.

local jacketItem = data.Equipment.Jacket:GetChildren()[1]
if jacketItem then
	local jacket = {
		Order = 10,
		AssetId = "12370124222",--jacketItem.id.Value,
		Puffiness = 1,
		AccessoryType = Enum.AccessoryType.Jacket,
		IsLayered = true
	}
	print(jacket.AssetId)
	table.insert(accessories, jacket)
end
print(accessories)
humanoidDescription:SetAccessories(accessories, false)
charModel.Humanoid:ApplyDescription(humanoidDescription)

This is the piece of clothing I’m trying to apply Tokyo Delinquent Coat [R] 1.0 - Roblox

I’m seeing this output https://gyazo.com/2c92d5e1c8f3cb6347e5b41fb280a0ad

  20:15:45.321  12370124222  -  Client - Client Render LocalScript:75
  20:15:45.321   ▼  {
                    [1] =  ▼  {
                       ["AccessoryType"] = Jacket,
                       ["AssetId"] = "12370124222",
                       ["IsLayered"] = true,
                       ["Order"] = 10,
                       ["Puffiness"] = 1
                    }
                 }  -  Client - Client Render LocalScript:79
  20:15:45.322  Input table contained an invalid asset id!  -  Studio

change this
local jacketItem = data.Equipment.Jacket:GetChildren()[1]

to this
local jacketItem = data.Equipment.Jacket[1]

if it is failing to work make something that will grab the mesh and texture and use those parameters.

The issue was using a string instead of a number

1 Like