Custom torso rotation (auto-rotation disabled)

Currently I have been working on custom torso rotation script (with disabled auto-rotation). I tried a few methods with camera CFrame and mouse’s origin, it didn’t work well.

How do I rotate player’s torso smoothly depending on camera rotation and move direction?

With custom torso rotation:
If player is stuck between a wall and a car, torso will not rotate (I guess it’s a body gyro).

Without custom torso rotation:
Player will just rotate. The end.

Any help is appreciated.

1 Like

Problem solved. I decided just to check if player is:

  • moving;
  • is in first person;
  • using shift-lock ( MouseLockController:GetIsMouseLocked() function).

And then I’m just getting certain information/setting up body gyro in player’s HRP.

1 Like