Do not use wait in loops (preferably do not use wait ever).
Loops complete in their entirety within a tick, or effectively instantaneously. For anything that needs to be done over time, use the timer behavior.
I found it very helpful to learn to use trigger conditions for everything that happens at certain time.
If you must use a wait, use "Wait loopindex seconds", and put it before the action.