I'm currently trying to make the player always face the direction of the camera, but the character ends up just bouncing constantly. Any way to fix this? (The script is in the StarterCharacterScripts by the way)

And i'm not using shift lock because I also want to count in up and down.

script for now(no errors appearing)

while true do
    local rot = script.Parent.Torso.Rotation

    script.Parent.Torso.CFrame =  CFrame.new(script.Parent.Torso.Position, workspace.CurrentCamera.CFrame.lookVector) * 
        CFrame.Angles(math.rad(rot.X),math.rad(rot.Y),math.rad(rot.Z))      
wait(0.1)
end

4 comments

0

You could use two vectors, the first one being the position, the second one being where to look at. Torso.CFrame = CFrame.new(Torso.CFrame.p, workspace.CurrentCamera.CFrame.lookVector)

0

Why not just enable ShiftLock?

0

Okay, i changed up the script, now the character is just spazzing out, constantly going to the side then turning then going to normal really fast

0

I have edited my comment, try that.