for _, object in pairs (game.Workspace.Model:GetChildren()) do
object.ChildRemoved:Connect(function(Child)
Child.Parent.Name = "OtherName"
end)
end
If I trying this error pops-out: attempt to index nil with 'Name'
I have many objects and when one object lost child I need to rename it.
