This function returns an array of
Accessory|Accessories that the
Humanoid|Humanoid’s parent is currently wearing. All
Accessory objects parented to the
Humanoid|Humanoid's parent will be included, regardless of if they are attached or not. If the humanoid is not wearing any accessories, the array will be empty.
Humanoid has no
Accessory|Accessories an empty array will be returned
Humanoid/AddAccessoryto attach an
An array of
Remove and Return Hats
This code sample will remove all the hats from a
Player/Character once the character has fully loaded. After five seconds, if the character still exists and is alive, it will return them.