API:Class/Instance/ChildRemoved

ChildRemoved

Event of Object Icon.pngInstance
RBXScriptSignal ChildRemoved (
    Instance child
)
Parameters:
  1. child

Description: Fires when a child is removed from the object.

Example

This snippet prints the names of objects as they are removed from the Workspace:

Workspace.ChildRemoved:connect(function(instance)
    print(instance.Name .. " removed from the Workspace")
end)
Instance.new("Part", Workspace)
--> Part removed from the Workspace