How do I randomize the location where an AI is chasing the player?

It was mostly to answer the question about vectors, but you would obviously add more script to handle what happens when the AI catches up… Once they’re close enough, switch to another subroutine. Note that you have the entire:

To explore.