How Do I Make My Hammer Rotate To Smash A Nail and Come back to its position?

Hi there! I tried what you said before Tuerer and sadly it didn’t work. Or maybe I just made a mistake. The hammer stills hits in ONE direction only (the forward direction) even if he turns 90 degrees.

Maybe I need a variable that says “you’re looking this way, so you hit in this direction”?