The player's capsule rotates abnormally when hit by the enemy


Hello everyone and blessings… I have had this problem for a long time and I have not found any solution to this, the player’s capsule rotates in a strange way when hit by the enemy, this only happens if the player is not moving nowhere… and this makes me very angry because I have done everything and I can’t find a solution!.. help!!!

Good news… I already found the problem… it was some nodes that made that when the player received damage, they rotated according to where the hit came from… finally!