Template:Method: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy Better colors |
>JulienDethurens No edit summary |
||
Line 19: | Line 19: | ||
|name = FindFirstChild | |name = FindFirstChild | ||
|arguments = {{type|string}} <var>name</var>, {{type|bool}} <var>recursive = false</var> | |arguments = {{type|string}} <var>name</var>, {{type|bool}} <var>recursive = false</var> | ||
|returns = {{ | |returns = {{type|instance=Instance}} | ||
|description = Returns the first child found with a name of <var>name</var>. Returns {{nil}} if no such child exists. If the optional <var>recursive</var> argument is {{true}}, will recursively descend the hierarchy while searching rather than only searching the immediate object. | |description = Returns the first child found with a name of <var>name</var>. Returns {{nil}} if no such child exists. If the optional <var>recursive</var> argument is {{true}}, will recursively descend the hierarchy while searching rather than only searching the immediate object. | ||
|object = Instance | |object = Instance |
Revision as of 05:21, 18 February 2012
[[{{{name}}} (Method)|{{{name}}}]]( {{{arguments}}} ) | |
Returns | {{{returns}}} |
Description: | {{{description}}} |
In Object: |
Example Usage
Single Object
FindFirstChild( string name, bool recursive = false )
Returns
Instance
Description:
Returns the first child found with a name of name. Returns nil if no such child exists. If the optional recursive argument is true, will recursively descend the hierarchy while searching rather than only searching the immediate object.
In Object:
Instance
Multiple Objects
BreakJoints( )
Returns
nil
Description:
Breaks any surface connection with any adjacent Part, including Welds and other JointInstances.
In Object:
BasePart, Model