Template:Method: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy Fixed |
>JulienDethurens No edit summary |
||
Line 10: | Line 10: | ||
|-style="background: #FFFFFF;" | |-style="background: #FFFFFF;" | ||
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|In Object{{if|{{{object2|}}}|s}}: | |style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|In Object{{if|{{{object2|}}}|s}}: | ||
|style="border-top: solid 1px black;"|{{if|{{{object|}}}| | |style="border-top: solid 1px black;"|{{if|{{{object|}}}|{{type|instance={{object|}}}}}}{{if|{{{objects|}}}|{{{objects|}}}}} | ||
|}</div><noinclude>{{clear floats}} | |}</div><noinclude>{{clear floats}} | ||
== Example Usage == | == Example Usage == | ||
Line 18: | Line 18: | ||
{{Method | {{Method | ||
|name = FindFirstChild | |name = FindFirstChild | ||
|arguments = | |arguments = {{type|string}} <var>name</var>, {{type|bool}} <var>recursive = false</var> | ||
|returns = | |returns = {{Instance|Instance}} | ||
|description = Returns the first child found with a name of <var>name</var>. Returns | |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 | ||
}} | }} | ||
Line 26: | Line 26: | ||
=== Multiple Objects === | === Multiple Objects === | ||
< | <code> | ||
{{Method | {{Method | ||
|name = BreakJoints | |name = BreakJoints | ||
|arguments = | |arguments = | ||
|description = Breaks any surface connection with any adjacent | |description = Breaks any surface connection with any adjacent {{type|instance=Part}}, including {{type|instance=Weld|Welds}} and other {{type|instance=JointInstance|JointInstances}}. | ||
|objects = | |objects = {{type|instance=BasePart}}, {{type|instance=Model}} | ||
}} | }} | ||
</ | </code> | ||
[[Category:Object Documentation Templates]] | [[Category:Object Documentation Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:34, 15 February 2012
[[{{{name}}} (Method)|{{{name}}}]]( {{{arguments}}} ) | |
Returns | {{{returns}}} |
Description: | {{{description}}} |
In Object: |
Example Usage
Single Object
FindFirstChild( string name, bool recursive = false )
Returns
Template: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:
[[RBX.lua.
[[]]
(Object)|
[[]]
]]
Multiple Objects
BreakJoints( )
Returns
nil
Description:
Breaks any surface connection with any adjacent Part, including Welds and other JointInstances.
In Object:
BasePart, Model