How to make camera also follow orientation of character head?

I’m trying to make a first person camera that follows the orientation of the character’s head and not just the position. How can I do that?

Script in Starterplayerscripts:

local plr = game.Players.LocalPlayer
local char = plr.CharacterAdded:wait()

local hum = char:WaitForChild("Humanoid")
local rootpart = char:WaitForChild("HumanoidRootPart") 
local head = char:WaitForChild("Head")

game:GetService("RunService"):BindToRenderStep("CameraOffset",Enum.RenderPriority.Camera.Value-1,function()
	hum.CameraOffset = (rootpart.CFrame+Vector3.new(0,1.5,0)):pointToObjectSpace(head.CFrame.p)
end)
2 Likes

For camera manipulation of that scale, you would have to set the CurrentCamera’s CFrame, and not just the Humanoid offset. A simple example would be:

camera.CFrame = head.CFrame * CFrame.new(0,0,5) -- behind the head by 5 studs

Although to avoid head bobbing I would use HumanoidRootPart instead of Head

I’m still going for the head but that script will make my camera more glitchy and harder to move.

Yes it’s very rudimentary as it needs a lot of work, but that’s one way of setting your camera in direction of player.