Enemy AI - Following Player and attacking

Hello, I am having difficulty coding an enemy AI, where the enemy follows the player and attacks him.

I don’t have any code as of yet to provide, other than what is provided when you purchase MTE.

So if anyone could provide an example that I could work with, I’d appreciate it greatly!

I’m trying to do exactly what is in this Video.

https://www.youtube.com/watch?v=iI60voxxeQU

Thank you!