Instantiate object at child position

Hi! I want to have my enemies stack on top of each other when they enter a trigger of another enemy. The way I’m doing this is by destroying the other enemy and instantiating another on top of the existing one.

My problem is that I don’t know how to instantiate the enemy on top of the other. The enemies have a child empty gameobject with a trigger box collider to mark where the top enemies should spawn. I don’t know how to instantiate it to the empty object’s position. I’ve tried searching other answers and the API but found nothing. I tried the code below but it didn’t work. C#

Instantiate(ClimbPref, this.transform.GetChild(5).position, this.transform. rotation);

Thanks!

Please, specify what exactly happens when the code you provided executed ?

Oh! I think I fixed it. I just had to move the empty gameobject higher to show the difference. Thanks for the really quick response!