I’m trying to recreate shift lock, and it seems like pivoting the pivoting the character directly causes it to slide on the ground. So far all the information I’ve found seems to be about custom rigs, I’m using the base r6 rig.
This is the code I’m using.
if not shiftLockEnabled then human.AutoRotate = true return end
human.AutoRotate = false
local hPos = hrp.Position
local x,y,z = camera.CFrame:ToOrientation()
local shiftCF = CFrame.new(hPos) * CFrame.Angles(0,y,0) * CFrame.new(0,1.5,0)
char:PivotTo(shiftCF)
Oh yeah another bug will arise with my solution. Make sure your loop for the camera or whatever is in renderstepped.
Also another bug, do not lerp the humanoid cframe
Thesd are both grave errors i spent minutes trying to fix. Minutes i could’ve spent hitting legs or going outside