Need script that calculates the distance from enemies and makes enemies chase player

Hello, I need a script that you attach to the player that will calculate the distance from the enemies and if they are in a certain distance they will chase the player. Please help! Thank You

UA is not a script writing service. Depending on whether you’re using 2D or 3D, you may want to read the scripting reference and in particular check out the distance methods(Vector2.Distance, Vector3.Distance).

Also, what have you tried?

If you attempt to create the method yourself, come back if you need help. You will also find this is a VERY COMMON question due to the slender clones.