Array and Queue problem

please refer to image, i want to create this queue scene, this is how it work, the person (p1) will be in the counter for 2 seconds, then the 2nd person (p2) will move to the counter and wait for 2 seconds. This will repeat until the 5th person (p5).

I create an array named Q4*, i can make the first person to move to the counter and wait for 2 seconds, then move the 1st person away, but the 2nd person dont move to the counter

i use Q4* as the queue position. any idea? thanks for reply