ChildRemoved (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Format/Example
>Camoy
Small changes
Line 7: Line 7:
|}
|}
{{Example|<pre>
{{Example|<pre>
function onChildRemoved(child)
local function onChildRemoved(child)
   print (child.Name)
   print(child.Name)
end
end


game.Workspace.ChildRemoved:connect(onChildRemoved)
game.Workspace.ChildRemoved:connect(onChildRemoved)
</pre>}}
</pre>}}

Revision as of 14:00, 29 August 2010

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

game.Workspace.ChildRemoved:connect(onChildRemoved)