ChildRemoved (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Link and formatting
>Camoy
Format/Example
Line 1: Line 1:
{|
{|
|<onlyinclude>{{Event|name = ChildRemoved
|<onlyinclude>{{Event|name = ChildRemoved
|arguments = [[Instance]] Child
|arguments = [[Instance]] ''child''
|description = Fired after a child is removed.
|description = Fired after a child is removed.
|object = [[Instance]]
|object = [[Instance]]
|}}</onlyinclude>
|}}</onlyinclude>
|}
|}
{{Example|<pre>
function onChildRemoved(child)
  print (child.Name)
end
game.Workspace.ChildRemoved:connect(onChildRemoved)
</pre>}}

Revision as of 13:53, 29 August 2010

ChildRemoved ( Instance child )
Description Fired after a child is removed.
Member of: [[RBX.lua.Instance (Object)|Instance]]
Example
function onChildRemoved(child)
  print (child.Name)
end

game.Workspace.ChildRemoved:connect(onChildRemoved)