DescendantRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace
m DescendentRemoving moved to DescendantRemoving
>JulienDethurens
No edit summary
 
(48 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{Event|name=DescendentRemoving
<onlyinclude>{{Event|name = DescendantRemoving
|arguments=[[Instance]] ''descendent''
|arguments = [[Instance]] <var>descendant</var>
|description= Fired after a descendent is removed.
|description = Fired when a descendant is being removed.
|object= Global
|object = Instance
|}}
}}</onlyinclude>
 
{{clear floats}}
 
== Example ==
 
This code would print the name of any descendant that gets removed from the Workspace:
 
{{code|=
Workspace.DescendantRemoving:connect(function(descendant)
print(descendant)
end)
}}
 
[[Category:Events]]

Latest revision as of 06:09, 10 April 2012

DescendantRemoving ( Instance descendant )
Description Fired when a descendant is being removed.
Member of: Instance


Example

This code would print the name of any descendant that gets removed from the Workspace:

Workspace.DescendantRemoving:connect(function(descendant)
	print(descendant)
end)