top of page

Humanoid:GetAccessories() Tutorial Roblox (Humanoid API)

This is a very useful addition to the Humanoid API, this allows for you to get an object table with all of the player's accessories in it (i.e. hats). This can be used as an alternative to a for loop like this:

The command will return a table of all the accessories that someone is wearing. This can be manipulated just like any other table.

If one of the spaces in the table is not being used, it will return a nil value. Here is something I made which will print the name of each item you are wearing.

hat thing
 

All you need is the player's Humanoid. Then you have the power to access a table with them all in. Here is the code for the hat box:

 

To make it work here is the example code: {EXAMPLE} means you need to enter your thing.

 

Thanks for reading! Sign up as a member for exclusive updates.


 Recent   
 Posts  
bottom of page