> For the complete documentation index, see [llms.txt](https://themattempire.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themattempire.gitbook.io/documentation/archive/roblox/avatar-clothes.md).

# Avatar Clothes

{% tabs %}
{% tab title="Tutorial" %}

## Setting Up

* Get the 'Clothing\_Cage.blend' file.
* Save it as a new file to build your asset.
* Duplicate the 'InnerCage' object, we can use this as a starting point.
  * This is not compulsory, it is simply a starting point.
* With the duplicate selected, right click and select 'Parent > Clear and Keep Transformation'.
  * This will remove this from the 'Cage' parent asset.
* Clear the 'Color Attributes / colorSet1' attributes in the 'Data Properties'.

<figure><img src="/files/aEL5tc2m9iGzcdwZQJsO" alt=""><figcaption><p>Clear the Color Attributes...</p></figcaption></figure>

* Rename your duplicate asset to the type of asset you want to make. \<AssetName> will be used moving forward.
* Rename '\<AssetName>\_*OuterCage' and '<*&#x41;ssetNam&#x65;*>\_*&#x49;nnerCage'.
* Hide the OuterCage and InnerCage assets for later.

{% hint style="warning" %}
Make sure you have the names the same as this is important for Roblox to connect the assets. You should have the following as an example :&#x20;

* CoolSweater
* CoolSweater\_InnerCage
* CoolSweater\_OuterCage
  {% endhint %}

## Creating the Asset

* Make your asset as you like.
* Cap all holes in your asset so the asset is watertight.
* Unwrap UVs of your asset.
* Texture the Asset.

{% hint style="warning" %}
It is recommended that your assets cover the '\<AssetName>\_InnerMesh' asset. Your clothes will not overlap the body in Roblox unless the body part is hidden due to the Clothes Type chosen.

Note that shoes are a LeftShoe and a RightShoe.

Gloves are not Clothes or an Accessory type. You may have luck using the Left or Right Grip in the Accessory category.
{% endhint %}

## Rigging the Asset

* Import the R15 rig to your scene.
* Rig the asset.
* Unhide the '\<AssetName>\_OuterCage'
* Adjust the OuterCage asset to fit your clothes asset as close as possible.
  * Use 'Snap / Face' tools.

## Updating the OuterCage

* Unhide the '\<AssetName>\_Outercage' asset.
* Position the OuterCage vertices to your clothing.
  * It is recommended to position the vertices as close as possible to your clothes.
    * Select all vertices and use 'Alt + S' to scale all the vertices outwards.
    * Use 'Snap / Face' tool to position the vertices exactly ontop of your clothes assets.
    * Use the 'X-Mirror Symmetry' tool in Edit mode to mirror the changes to the OuterCage to the opposite side to save time on symmetrical meshes.

{% hint style="warning" %}
Make sure that you move the OuterCage vertices away from the InnerCage vertices, otherwise you may get a warning on import or the clothes will not be the right scale in Roblox.
{% endhint %}

## Exporting the Asset

<figure><img src="/files/AD7gsYu3bO4t1Hgj79AC" alt=""><figcaption><p>FBX Export Settings...</p></figcaption></figure>

* Unhide and export the following assets as an .fbx :&#x20;
  * Armature + \<AssetName>
  * \<AssetName>\_InnerCage
  * \<AssetName>\_OuterCage
* Use the following export settings :&#x20;
  * Path Mode - Copy + Embed Textures Enabled
  * Scale - 0.01
  * Turn off 'Add Leaf Bones'
  * Disable 'Bake Animation'

## Importing your Asset

* In the Avatar tab, select 'Accessory Fitting Tool'.
* Import the asset into Roblox Studio using Import 3D File at the top.
  * Uploading to Roblox is generally not recommended.
  * Everything else can be left as default.
  * You can also import the 3D file first and then open the Accessory Fitting Tool.

<figure><img src="/files/XY7mBg1C1YdI9II3MPNX" alt=""><figcaption><p>Import your Asset...</p></figcaption></figure>

* Select the Asset Category and then Type, before selecting 'Next' again :&#x20;
  * Clothing - *Dress, Jacket, LeftShoe, Pants, RightShoe, Shirt, Shorts, Skirt, Sweater, Tee Shirt*
  * Accessory - *Back, Eyebrows, Eyelashes, Face, Front, Hair, Hat, Left Foot, Left Grip, Neck, Right Foot, Right Grip, Shoulder, Waist*
* Test out your asset with the various Samples in the tool.
* Once confirmed, select 'Generate MeshPart Accessory'

## Using the Asset

* You can teen drag and drop the asset onto a character.
* Save the Accessory as an avatar asset.
* Upload and/or sell the asset on the marketplace.
  {% endtab %}

{% tab title="Troubleshooting" %}

## Import Issues

#### The Clothes asset does not align with the character

This could be because your OuterCage mesh has not been repositioned away from the InnerCage mesh. Make sure to scale all the vertices up even slightly such as using the Alt + S hotkey in Blender.

## Import Warnings

#### The number of cage vertices between the outer and inner cage don't match

This may not break your Clothes assets. Make sure to test your assets in the Accesory Fitting Tool to see if there are any issues.
{% endtab %}
{% endtabs %}
