ChildAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy No edit summary |
>JulienDethurens No edit summary |
||
(34 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Event|name=ChildAdded | <onlyinclude>{{Event | ||
|arguments=[[Instance]] | |name = ChildAdded | ||
|description=Fired after a child is added. | |arguments = [[Instance]] <var>child</var> | ||
|object=Instance | |description = Fired after a child is added. | ||
|object = Instance | |||
}}</onlyinclude> | }}</onlyinclude> | ||
== | <div class="visualClear"></div> | ||
== Example == | |||
function | |||
Event is triggered when a new child has this object set as a parent. It applies only to immediate children and not other [[IsDescendantOf (Function)|Descendants]]. (See [[DescendantAdded]]).{{code|= | |||
end | Workspace.ChildAdded:connect(function(child) | ||
print(child.Name) | |||
end) | |||
}} | |||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 02:18, 25 March 2012
ChildAdded ( Instance child ) | |
Description | Fired after a child is added. |
---|---|
Member of: | Instance |
Example
Event is triggered when a new child has this object set as a parent. It applies only to immediate children and not other Descendants. (See DescendantAdded).
Workspace.ChildAdded:connect(function(child)
print(child.Name)
end)