PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

DescendantAdded

Fires when a descendant is added to the Instance.

As DescendantAdded fires for every descendant, parenting an object to the Instance will fire the event for this object and all of its descendants individually.

Developers only concerned with the immediate children of the Instance should use Instance/ChildAdded instead.

See also Instance/DescendantRemoving.

Parameters

Name Type Default Description

The Instance that has been added.


Code Samples


Instance.DescendantAdded

This following example will print the name of any object that is added to the Workspace:

Workspace.DescendantAdded:Connect(function(descendant)
	print(descendant)
end)