# Instantiate creates a clone in wrong position

I have this prefab with this transform:

And then using this code to create a clone (the prefab is assigned to a public property of a script, which I assign using the editor, which is the e.Weapon):

Instantiate(e.Weapon, new Vector3(0f, 0f, 0f), Quaternion.identity, rightHand.transform);


I am parenting it to my character's right hand. But whenever the clone gets created, it has different position than the one I have in my code. It appears like this:

Any idea why this is happening?

• is your object child of another one? – virtouso Oct 15 '19 at 5:39
• @virtouso: yes, it is – g_b Oct 15 '19 at 8:30