Changing the direction of a group of objects moving together

Hi, I’m trying to get this group of objects to change direction of movement when I hit Space. Right now when i do it they move together as a whole but I want the to do it one by one when they reach the point where space was hit.

Here is the script I wrote for the movement:

Try using a List to store references to each child transform, then use a for loop in a coroutine to move each transform individually with a slight WaitForSeconds delay between each iteration.