Let’s say Locate Creature is used by the party to try to find a mind flayer. 
The caster has seen one before and begins following the direction the spell directs toward a mind flayer within 1,00 feet. 
Then it begins moving away from the caster as other mind flayers move into range, some closer...