When I try to iterate through every descendant of a given character, it works fine with classes like BasePart, Attachment, Motor6D and Decals, but ignores classes like Accessory, Shirt, Pants, SpecialMesh etc. Even though the GetDescendants() function works fine
local descendants = char:GetDescendants()
print(descendants) --Prints all descendants
for _, x in descendants do
print(x) --Doesn't print some descendants
end
Same issue with GetChildren()
I don’t run the code above right after the game starts so everything is supposed to be loaded
I haven’t scripted or used the devforum in ages but I think this belongs in the Bug Reports and isnt really your fault because getdescendants should return everything. No matter what it is.
Maybe you can try doing this in a new baseplate? Other than that I don’t see an issue on your side.