Error while assigning camera position to a cube.

I was looking at Brackeys’ Unity tutorial and when I tried to assign the camera’s position to the player(a cube), the cube just shot out of the ground. The following screenshot is what happens after i hit the play button. Any help? I checked my code and it is similar to the one in the video. Any possible fixes?

Hi,
Could you test by deactivating the Player Movement script and then, the Box Collider?

I did, and now it works tho. The thing was that once i put that script inside the camera, it worked. It did not work while the script was in the player.