My Player Character always reset its position to the 0, 0 ,0 when I start the animation. Why is this happening?

I have imported an asset. Then I imported the player character where the animation for it was already there I just need to create a code to trigger the animation. The problem is when I trigger the animation the player instantly goes back to different position and start making the animation. I don’t know why this is happening. Can someone help me please?

Thank you.

Hi! The animator will always override the position of whatever it is animating. Try giving this character a parent gameobject and putting all your movement scripts onto that, this way the player will nicely animate, while giving you the ability to move it where you need to.