Vector3 does not work

Hey, can someone help me understand what the problem is here with my vector3. I’m using a vector3 to change the position of a gameobject. In an update loop, I have the code ‘boss.transform.position = new Vector3(8.406086f, boss.transform.position.y, -12.64066f);’. Y is not set to a value because this can change, however, the x and z values stay the same all the time. I would think by using this line of code the x axis of this object will always stay at ‘8.406086’ and the z axis will always stay at ‘-12.64066’, but it doesn’t. For some reason the objects go to the coordinates of x = 18.25217 and z = -23.80132. If someone could tell me where I’m going wrong that would be great because I am super confused right now and have been looking at this for hours…

can you post your code? Also, is your object a child or parent of another object?