Help finding descendant

How could I find when a child is added then find the name of that descendant? Probably with descendantadded but I’m too dumb to figure out how.

Example: Say something is added every 10 seconds, how could I figure out the name of that and when its added.

1 Like
local workspace = game.Workspace

workspace.DescendantAdded:Connect(function(newDescendant)
	local descendantName = newDescendant.Name
	print(descendantName)
end)

The DescendantAdded event fires whenever an instance receives a new instance, in the above script workspace is the instance being inspected, when it receives a new instance the name of the new instance is printed to the console.

1 Like