Player knockback

Okay so I added a negative number and it works for that one direction but when I go around him I get pushed towards him. There’s gotta be some way where if I get hit I just stumble backwards and not in a -500 X axis direction or something, y’know.