API:Class/Instance/ChildAdded

ChildAdded

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

Description: Fires when a child is added to the object.

Example

This snippet prints the names of objects as they are added to the Workspace:

workspace.ChildAdded:connect(function(instance)
    print(instance.Name .. " added to the workspace")
end)
Instance.new("Part", workspace)
--> Part added to the Workspace