So… I am wanting to use a HumanoidDescription to add and remove Accessories, specifically the new deformed mesh clothing, such as ‘Jackets’
According to the web site, to do this, I need to use the two functions of HumanoidDescription, :GetAccessories and :SetAccessories
To remove an accessory by its id, I get the table of accessories (:GetAccessories) then I parse, and remove the one that matches the id, then I write the table back (:SetAccessores) then I apply the HumanoidDescription.
This works, however…
To ADD an accessory, I need to Get the table, table.insert an accessory element, then Write the table, then apply description.
My problem is that I don’t know where to get the information for that ‘element’
When reading a HumanoidDescription, with a Jacket, the element for the jacket looks like this…
[“AccessoryType”] = Jacket,
[“AssetId”] = 9039498111,
[“IsLayered”] = true,
[“Order”] = 10
So my question is where do I get this information, if I am wanting to put it BACK into the HumanoidDescription. Where can I use the AssetId, and be able to get AccessoryType, IsLayered, and Order (and some even have Puffiness)
I tried to use MarketplaceService:GetProductInfo(id), but it does not contain the information.
Hope this wasnt too confusing and verbose. Thanks for any help.