Instance:FindFirstDescendant()

So I was going to create a loop to find a certain descendant and then the function FindFirstDescendant() popped up. I thought I would try it out and I got an error saying that it isn’t enabled, does anyone know how to enable it?

See images below.

image image

14 Likes

This feature has not been enabled yet, what the output says the same thing.

You could probably flip a flag to enable it but don’t do that unless you know what you’re doing.

This was added in the recent release notes:

You can’t enable it I believe, unless you can change a flag, it is planned to be added soon, hopefully.

For now, jsut use the 2 argument of FindFirstChild so it checks recursively

Say you have a part called Bob and you want to find Steve in it, but it’s a descendant, not a child, so jsut do

Bob:FindFirstChild("Steve",true)
49 Likes

Try using Instance:GetDescendants then filtering through the lists to find the one you want.

4 Likes

What do you mean “flip a flag”?

1 Like

Enabling or disabling a studio FFlag