a hat, a tshirt, or any item really- what is the best way to go about doing this in code? I understand you'd probably want to find the ID, but is there a specific in-built function I can call or rather just going through a characters children? (for example)
You can use this to get a player's overall appearance, but apart from that, the only way to find the individual components would be to grab the textures from the character's children (I think).