How do you check what accessories a player has

So im trying to make it when you join the game it checks for what accesories you are wearing and display them above the remove button, anyone know how I would go about getting accessories of a player and displaying them in the ui

1 Like

GetAccessories.

1 Like

To get the accessories of a player, utilize the function GetAccessories. This is an in-built function of Humanoid. This function will return a character’s accessories in an array. Read more about it in the article below.
https://developer.roblox.com/en-us/api-reference/function/Humanoid/GetAccessories
In order to get the thumbnail of an asset, use the following code.

"rbxthumb://type=Asset&id=".. tostring([ASSET ID HERE]) .."&w=150&h=150" -- ID for your asset thumbnail image!!

Note that you can reformat the size of your image by changing those numbers after w= and h= (standing for width and height, respectively) in the code.
To learn more about this, I suggest you take a look at this article:
https://developer.roblox.com/en-us/articles/Content
If you have any further questions, please reach out and I will get back to you.
Hope this helped.

3 Likes