What does this line of code do?

What does true do to this line of code?

local Neck = Character:FindFirstChild("Neck", true)

It makes it search for descendants too, not just children.
Basically it searches for the children, the children of those children and more.

1 Like

Recursive = false

Search for all children with the given name and return the first one.

Recursive = true

Search for all children with the given name. Return the first one if it exists. Otherwise, search all children of children and repeat the process.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.