Yanfly action sequence help

I'm trying to just do a basic attack where the character/ enemy goes up to the target, attacks and shows the attack animation, then goes back to their starting position... I've searched for the right code and I've found these two but neither seems to be working

Spoiler: Code 1
Code:
<setup action>
MOTION STANDBY: target
</setup action>
<whole action>
MOTION STANDBY: target
</whole action>
<finish action>
Perform finish
</finish action>

and

Spoiler: Code 2
Code:
<setup action>
clear battle log
display action
immortal: targets, true
</setup action>

<whole action>
move user: targets, front, 20
motion standby: user
wait for movement
face user: target
</whole action>

<target action>
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>

The first code works correctly for skill 1 but not for the rest, what am I doing wrong?

Thanks!
Using whole action and target action is redundant and can cause issues sometimes. See if this sequence works for you.

<setup action>
clear battle log
display action
immortal: targets, true
</setup action>

<target action>
move user: target, front, 20
motion standby: user
wait for movement
face user: target
motion attack: user
wait: 10
action animation: target
wait for animation
action effect
</target action>

<finish action>
wait for effect
perform finish
</finish action>
@JGreene Thanks! that did it

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequence-help.112976/