How to make a spell to lock-follow monster

Hello, how i can make spell go up to enemy, atm i have a small problem with my script

many times monster change position faster than spell arrive to monster, i wan’t the spell follow monster

how i can do that?

this is my code (loop)

				while(myspell!= null  Distance(myspell.transform.position, target.position) > 1)
				{
					myspell.transform.Translate(Vector3.forward * (Time.deltaTime * 30));
					yield return null;	// Wait 1 frame
				}

You need to translate towards the enemy so you where nearly there.

myspeel.transform.Translate(Vector3.forward, monster.transform.position * (Time.deltaTime * 30))

You need to give it a position to travel towards as of now what you are doing is just sending it forward.