top of page

Humanoid:GetAccessories() Tutorial Roblox (Humanoid API)

  • Writer: SteadyOn
    SteadyOn
  • Jan 6, 2017
  • 1 min read

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  
Want to advertise here?
Click here
Contact
 

To contact me fill in the form below... although I don't really know why you would want to haha!

  • Twitter Basic Black
  • Black Google+ Icon

ROBLOX logos, names, and all related indicia are trademarks of ROBLOX Corporation, ©2014.

Success! Message received.

bottom of page