Camera following player without rotation

I am on Unity’s tutorial 3 on making a roll-a-ball game but my camera zooms in way too much when I press play. In the video, the camera stays in its original position but it seems that my camera moves to the position of the ball even though I used the exact same code in the video. Here is the code:

using UnityEngine;
using System.Collections;

public class CameraController : MonoBehaviour {

public GameObject player;
private Vector3 offset;

void start() {
	offset = transform.position;
}

void LateUpdate() {
	transform.position = player.transform.position + offset;
}

}

I can see a lil error in your code, the start function you typed start() and not Start() S must be uppercase if you’re using the built in function. And also, if you’re trying to use what robertbu said, you must use player.transform.position, not player.position that’s why you get the error.

player is a gameObject, which contains the component Transform, and the Transform component contains a member variable called position, that’s why you can’t access it directly with player.position