How would I make a dynamic turning system?

Hello.

My question is this,

How would I make a turning system similar to Soul Shatters system or Untitled Combat Demo’s system.

Don’t know what I mean? Lemme explain.

So when you turn your camera in the game, the Players torso kinda follows it for a split second then goes back to normal. This happens every time you turn your camera ether way.

Thank you!