vector 3 isnt working offset part,the vector 3 isnt working 'offset' has a problem

using UnityEngine;

public class Followplayer : MonoBehaviour {

public Transform player;
public Vector3 offset;

// Update is called once per frame
void Update () {
    transform.position = player.position;
}

}

,using UnityEngine;

public class Followplayer : MonoBehaviour {

public Transform player;
public Vector3 offset;

// Update is called once per frame
void Update () {
    transform.position = player.position;
}

}

@Thewizard123456
hi i really need help on this

That’s likely because the camera’s position gets centered within the character’s head. Adjust the position of the camera after parenting it along the Z axis to move it behind. And if the head can rotate independently, you’ll want to make sure to parent the camera to a bone on the player that can’t move.