Scripting for enemies moving toward first player and attacking?

I am trying to find out how to make my enemies move toward my first character controller, and none of everyone else’s scripts are helping me. All I get is errors, and I know nothing about scripting at all. I just need a basic script to have my enemies move toward my character and attack him. Please help? It will be greatly appreciated.

I suggest going through the Survival Shooter tutorial in the Unity Learn section found here. It shows you how to use Agents and a NavMesh to have enemies pursue the player.

Those enemies are not very bright or complicated. They simply move toward the player and sit next to the player doing damage. It will give you a base to start from; you can add more complicated behaviors, such as not moving if the enemy is too far from the player to notice them, at a later time.