Please help why does it give me an error

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:

You didn’t use the same code he did. Look more carefully.

7649212--953689--upload_2021-11-11_14-49-22.png

oh ok thanks

1 Like