How to stop the parents script affecting one of the children?

I have a death script on my parent object so that when they are touched by a “death” tagged object the scene will restart. However children object attached to this parent will also restart the scene when touched by the “death” tagged object. How do I prevent this death script when the children are collided with.

You could change the tag of your parent object to ‘Parent’, and place the collision script on the enemy, instead of the player. This way, the enemy is detecting whether or not they hit an object tagged as ‘Parent’, and this shouldn’t be a problem if you have children colliders, as they won’t be tagged as ‘Parent’. @FezzaOrFez