how do i make it so my player cant attack while running ?

im able attack while running and it makes the run animation look really weird id like to make it so he can only attack when stationary

add a switch between the trigger and the attack then use a extacter with this x velocity connect that to a filter equal to 0 pass turns on the switch fail turns off the switch