Child
Finds children of an instance by path. This is useful for finding deeply nested children without having to write a long chain of :FindFirstChild() or :WaitForChild() calls.
Functions
FromPathOptional
Child.FromPathOptional(path: {string}--
The path to the child, as an array of strings.
) → Instance?--
The child instance, or nil if it doesn't exist.
Seeks a child or descendant from a path, returning nil if it doesn't exist.
FromPathAsync
Child.FromPathAsync(path: {string},--
The path to the child, as an array of strings.
timeoutAfter: number?--
The time in seconds to wait before giving up. Defaults to infinite.
) → Instance?--
The child instance, or nil if it doesn't exist.
Seeks a child or descendant from a path, waiting for it to exist if it doesn't. Returns nil if the timeout is reached.