Different Accessory Type

Hello. I was wondering how to tell what type of Accessory Item is Accessory being used, For example, If the Accessory is Hair, how would someone know how to be able to use this info in a Script? Please respond to this Topic if you know how this info is obtainable.

Specific accessory types have specific names for their attachments. For instance, accessories that are Hats have an Attachment in them called "HatAttachment".