I've recently discovered a second parameter of Instance:FindFirstChild
, recursive
. How would I use it? The wiki doesn't provide an example with recursive
.
Basically it functions as a :FindFirstDescendant()
(if that were a thing); it will check the children, the children's children, and so on.
An example would be:
print(game:FindFirstChild("StarterCharacterScripts", false)) -- nil print(game:FindFirstChild("StarterCharacterScripts", true)) -- StarterCharacterScripts