PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

FindFirstChildOfClass

Returns the first child of the Instance whose Instance/ClassName|ClassName is equal to the given className.

If no matching child is found, this function returns nil.

Unlike Instance/FindFirstChildWhichIsA this function uses only returns objects whose class matches the given className, ignoring class inheritance.

Developers looking for a child by name should use Instance/FindFirstChild instead.

Parameters

Name Type Default Description

The Instance/ClassName to be looked for.

Returns

Return Type Summary

The Instance found.


Code Samples


Instance:FindFirstChildOfClass