I was following a Brackeys beginner tutorial (I only started today)
Except when I put in my code it said I have an error even though its the same code as he did.
Here is the code:
using UnityEngine;
public class FollowPlayer : MonoBehaviour
{
public Transform player;
public Vector3 offset;
void Update()
{
transform.position = player.position
}
}
And here is the video: