So tried to make a script which makes the Camera track where the Head is looking giving it a realistic feel especially with my animations like a flip, instead of the Camera Subject attached to humanoid root part, i tried attaching it to the characters head but the problem is i cant move the camera to up or down, i tried adding the Head Movement but its doing a spinny thing, would like it so that i could move arround the camera i want but also track the heads LookAt both combined
Heres the code LocalScript / StarterPlayerScript
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()
game.workspace.CurrentCamera.CFrame = head.CFrame * CFrame.new(0,0,0)
end)
I understand how to script but im not that good at executing it so sometimes i look through forums if it doesnt work.