Player Camera Reset - Error Spam

Hey, I’m trying to reset the player camera back to the player, but unfortunately the console gets spammed with these errors. I don’t know what else I can do to fix this error.

Code (Local):

game.ReplicatedStorage.HONEYCAM2.OnClientEvent:Connect(function()
	local h = game.Players.LocalPlayer.Character.Humanoid
	workspace.Camera.CameraType = Enum.CameraType.Custom
	workspace.Camera.CameraSubject = h
end)

Errors:

Thank you in advance for the help.

try change Camera to CurrentCamera

The errors are still coming, unfortunately.

game.ReplicatedStorage.HONEYCAM2.OnClientEvent:Connect(function()
	local h = game.Players.LocalPlayer.Character.Humanoid
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	workspace.CurrentCamera.CameraSubject = h
end)

I solved it by myself

game.ReplicatedStorage.HONEYCAM2.OnClientEvent:Connect(function()

	local cam = game.Workspace.CurrentCamera
	cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
	cam.CameraType = Enum.CameraType.Custom
	cam.CFrame = game.Players.LocalPlayer.Character.Head.CFrame

end)