Scripting Help!

Hello!

So I am currently making an avatar customization GUI for my game and I want to incorporate a section that shows all the accessories you are currently wearing! I want to make it so that it loops through the character’s humanoid description and adds a GUI for each accessory there is! However, I’m not honestly sure how to do this! Especially the looping through the humanoid description bit! Please can someone help!

Thank you!

1 Like

Do a for in pairs loop and if the part is an accessory then add the gui of the accessory

1 Like

Yes but how can i loop through a bunch of ids in the humanoid description??

You could do
for i, v in ipairs(character:GetChildren()) do
if v:IsA(“Accessory”) then
– code
end
end

1 Like

Sorry, had to edit a bit. It had a few issues initially when I wrote it lol

Yes i can do that but i need to loop through the humanoid description ids not the character

Oh. I don’t know much about that segment of the humanoid so I have absolutely no clue how to help you on that, sorry!

You have to find the mesh in the accessory

image

You can then find the IDs

image

im not sure if you understand my completely so dont worry about it!