I was originally trying to stress-test a loading screen I had created, when I realised the amount of assets was insanely low. I had inserted a few texture packs of the toolbox and none of them were showing up.
While debugging, I found out that game:GetDescendants()
was not infact, getting all descendants.
for _, v in game:GetDescendants() do
if (#v:GetDescendants()) ~= 0 then
print(#v:GetDescendants())
end
end
Ran in a seperate LocalScript
inside of ReplicatedFirst
. The output should be nothing, since there shouldn’t be any descendants or even any children if its traversing down the entire path.
Here’s the kicker:
Why is game:GetDescendants()
not getting all descendants?