Camera's Player Following Script Is Janky

I created a simple script that makes the camera track the player. It’s simple, it uses the player current transform.position multiplied by 0.05f, so the camera follows the player slowly.

The problem is when the player position is around (0, 0, 0) the camera position changes drastically, and I dont know why that’s happening. I tried to create a dead zone, but i could not solve it.

I also tried to use cinemachine, but i didn’t manage to apply the 0.05f multiplication effect.

Video: https://youtu.be/4ir22jZoqo4

Code:

Vector3.SmoothDamp

Straight to the point.