How do I rotate my character smoothly

I am trying to make a shoulder camera for a gun system I am making and I cannot get the character to move smoothly. So far I’ve tried to move the character on Heartbeat, Stepped, RenderStepped, and I’ve tried to tween the character and use a body gyro but to make the character move smoothly, but nothing works (tweening/body gyro is either too slow where it looks really bad or its too fast and still jittery).

When I use RenderStepped:
When I use Heartbeat:
When I use Stepped:
When I tween: (too slow) (too fast)

Here is my code used for turning the character:

turnListen = runService.RenderStepped:Connect(function()
	local camVector = camera.CFrame.LookVector
	local rootCFrame =, * 999, root.Position.Y, camVector.Z * 999))
	root.CFrame = rootCFrame

I’m trying to find a solution that would make the turning something similar to shiftlock like in this gif:


I believe you can solve it by lerping the CFrame values in order to smoothen it out similar to tweening but not as linear like so. You can adjust the lerp alpha value in order to change how fast you lerp towards the current goal CFrame and such.

turnListen = runService.RenderStepped:Connect(function(step)
	local camVector = camera.CFrame.LookVector
	local rootCFrame =, * 999, root.Position.Y, camVector.Z * 999))
local lerpAlpha = 0.25
	root.CFrame = root.CFrame:Lerp(rootCFrame,lerpAlpha)
1 Like

Tweening is smoother than lerping the CFrame


Are you sure about that, where is this coming from? This resource seems to achieve what you are trying to do and it uses lerping to achieve the objectives and I think it’s pretty good.

Looking through the source code perhaps it’s not the only the root CFrame of the character that needs lerping but the camera as well.

		--// Calculate new camera cframe //--
		local newCameraCFrame = *
			CFrame.Angles(0, self.HorizontalAngle, 0) *
			CFrame.Angles(self.VerticalAngle, 0, 0) *
		newCameraCFrame = currentCamera.CFrame:Lerp(newCameraCFrame, activeCameraSettings.LerpSpeed)

IDK, up to you.

1 Like

Hey, I’m not sure if you’ve found the answer yet but I would suggest using something like this script

HumanoidRP.CFrame =, HumanoidRP.CFrame.p, camera.CFrame.LookVector.Y, camera.CFrame.LookVector.Z))