I want to make a loop that makes a text button for each hat in a player's character, but it's really hard and I'm not sure how.
I've tried doing this:
for i=1, #hat do if (hat[i].className == "Accoutrement") then Instance.new("TextButton") end
but it only creates one text button, even though there are more than one accouterment in the player's character.

1 comment
that's not what I mean, but even if I do that it will still not work...