DescendantAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace m DescendentAdded moved to DescendantAdded |
>JulienDethurens No edit summary |
||
(35 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{Event|name= | <onlyinclude>{{Event|name = DescendantAdded | ||
|arguments=[[Instance]] | |arguments = [[Instance]] <var>descendant</var> | ||
|description= Fired | |description = Fired when a descendant is added to the object. | ||
|object= | |object = Instance | ||
|}} | }}</onlyinclude> | ||
{{clear floats}} | |||
== Example == | |||
This code will print the name of any object that is added to the Workspace: | |||
{{code|= | |||
Workspace.DescendantAdded:connect(function(descendant) | |||
print(descendant) | |||
end) | |||
}} | |||
[[Category:Events]] |
Latest revision as of 06:04, 10 April 2012
DescendantAdded ( Instance descendant ) | |
Description | Fired when a descendant is added to the object. |
---|---|
Member of: | Instance |
Example
This code will print the name of any object that is added to the Workspace:
Workspace.DescendantAdded:connect(function(descendant)
print(descendant)
end)