Camera subject breaks my character

I’m trying to make the camera subject track the character’s head

but every time I do that It always end up with the character not turning at all or the character turning with the camera

Camera Subject is set to humanoid here

Camera Subject is set to head here

I’ve tried looking through the devforum but I found nothing that helpful
and this is the code I used to set the camerasubject

local cam = workspace.CurrentCamera
local plr = game.Players.LocalPlayer
local chr = plr.Character or plr.CharacterAdded:Wait()
local head = chr:WaitForChild("Head")

cam.CameraType = "Track"
cam.CameraSubject = head

some help would be greatly appreciated

I’m pretty sure this isn’t a bug

For your case however, you could modify the humanoid’s camera offset to ‘track’ the head (without changing the CameraType nor Subject):

game:GetService("RunService"):BindToRenderStep("TrackHead", Enum.RenderPriority.Camera.Value, function()
	humanoid.CameraOffset = ( rootpart.CFrame + Vector3.new(0, 1.5, 0) ):PointToObjectSpace( head.Position )
end)
4 Likes

alright I’ll try this and see how it goes

After trying out the code these errors started appearing on the output
image
and here’s the code that I did

local runService = game:GetService("RunService")

local plr = game.Players.LocalPlayer
local chr = plr.Character or plr.CharacterAdded:Wait()

local head = script.Parent:WaitForChild("Head")
local hum = script.Parent:WaitForChild("Humanoid")
local hrp = script.Parent:WaitForChild("HumanoidRootPart")

runService:BindToRenderStep("TrackHead", Enum.RenderPriority.Camera.Value, function()
	hum.CameraOffset = (hrp.CFrame + Vector3.new(0, 1.5, 0)):PointToObjectCFrame(head.Position)
end)

please let me know If I’m doing something wrong

Oops, I miswrote PointToObjectCFrame, it’s supposed to be PointToObjectSpace

It’s fine Imma try the script now

It works very well thank you very much for your help