Camera moves impossibly fast, and can't see any object

When the Player is a child of the camera, the camera sees the player, but moves impossibly fast. 195117-2022-04-17-17-47-40-hack-microsoft-visual-studio.png
When the Player isn’t a child of the camera, It doesn’t get seen by the camera when built.
195119-2022-04-17-17-48-57-hack-game-pc-mac-linux-standal.png

Camera script:

using UnityEngine;
public class PlayerCam : MonoBehaviour
{
    public GameObject player;
    void Update()
    {
        gameObject.transform.position = player.transform.position;
    }
}

(Unity 2020.3.30f1)

Sorry I don’t have more info, I’m just really confused.

I just deleted and recreated the camera… and it worked!