Assets/FollowPlayer.cs(10,8): error CS1525: Unexpected symbol `public'

nvm i fixed it

You can’t write public inside a method (in this case Update). Try putting that line above void Update.