Move Character when use tool

i’m making a sword fight game and i want when a player attack the character move a little bit in direction of a player camera is turned

Use Linearvelocity when attacked and make the linearvelocity move away the player rather than the camera