How do I make my head follow mouse smooth?

Hello, I just wanted to ask.

How do I make my head follow mouse smooth? Like other gun engine such as WB.
Here’s video,
robloxapp-20221026-1507204.wmv (2.4 MB)

I don’t like it, it feels like not quality and jerk.

here’s what I want my camera follow mouse smooth
robloxapp-20221026-1512401.wmv (1.6 MB)

Some script below,


local model = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local head = model:FindFirstChild("Head")

local originalOri = 90 -- Don't change anything! Keep this number

local originalEA = 3.15 -- Don't change anything! Keep this number

local mouse = game.Players.LocalPlayer:GetMouse()

local orginalC0 = CFrame.new(0, 1.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)

local neck = model:FindFirstChild("Torso").Head

head.Orientation = Vector3.new(-originalOri,0,0)

mouse.Move:connect(function ()
	local Direction = mouse.Hit.p
	local b = head.Position.Y - Direction.Y
	local dist = (head.Position - Direction).magnitude
	local answer = math.asin(b/dist)
	neck.C0 = orginalC0 * CFrame.fromEulerAnglesXYZ(answer,originalEA,0)
	wait(0.1)
end)

Any answer try comment below ok thanks

1 Like

Try use lerping it might help.

Try looking at this post: Need help with torso and head following mouse - #7 by CleverSource
This is for R15, but you can modify it for R6 if you need it.