Here was what I had tried:
player = game.Players.LocalPlayer
char = player.Character
camera = workspace.CurrentCamera
game:GetService("RunService").RenderStepped:connect(function()
camera.CFrame = camera.CFrame + Vector3.new(0,char.Head.Position.y,0)
end)
What I was trying to do was make the camera move horizontally with the head.
EX: Character crouches, camera moves down with character's head

6 comments
camera.CFrame = camera.CFrame + CFrame.new() not Vector3.new
I had already tried that, but thanks for helping. I think I may have found the solution but I have not thought of it yet.
Tested it*
okay so it didnt work
I updated my answer
Is your camera scriptable and I don't think local scripts can access Workspace