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
After trying out the code these errors started appearing on the output
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)