Change Target Script For Move Towards

Hi everyone! I have managed to make a move towards script and get it to move to a game object but I would like it to change when I get to the first target. Could someone help me either write a script or just something that works.

I got it from another post never mind!