DescendantRemoving (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SCARFACIAL
No edit summary
>Flurite
No edit summary
Line 7: Line 7:
{{clear floats}}
{{clear floats}}


{{Example|<pre>
{{Example|<code lua>
local function onDescendantRemoving(ins)
local function onDescendantRemoving(ins)
   print(ins.Name)
   print(ins.Name)
Line 13: Line 13:


game.Workspace.DescendantRemoving:connect(onDescendantRemoving)
game.Workspace.DescendantRemoving:connect(onDescendantRemoving)
</pre>}}
</code>}}


[[Category:Events]]
[[Category:Events]]

Revision as of 22:04, 20 March 2012

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


Example

local function onDescendantRemoving(ins)

 print(ins.Name)

end

game.Workspace.DescendantRemoving:connect(onDescendantRemoving)