What is the best way to make the player face the camera lookvector?(custom shift lock)

Greetings, I am trying to make a custom shift lock button and i’ve made it work however the two solutions i’ve found both have their issues.

  1. renderstep the character.PrimaryPart.CFrame to face the look vector
    this works but it’s choppy

  2. do the same to a body gyro in the primary part
    this works but it’s slow and doesn’t act properly like shift lock, instantly changing the player direction

I am hoping there is another, better solution. However after browsing for hours i’ve been unable to find one. Any advice would be appreciated.

Thank you for your time

2 Likes

If you set the characters CFrame in a heartbeat loop it shouldn’t be choppy.

unfortunately it is still choppy when turning, jittery even

Try using RenderStep and setting renderPriority to 200 - 300.

1 Like

Have you tried this?

this no longer works because local scripts can no longer access player scripts, perhaps it would be possible to put this in a serverside script and fire it to a local script? tho i am sceptical