Help with Positioning 2 parts

So,
I have a hitbox and a “camera” part directly in the center of the front face of the hitbox, but whenever I move the hitbox at an angle the camera doesn’t move correctly.
See the problem below:

Script (Fairly similar across all buttons)


function clicked()
	while c == true do
		wait(0.1)
		if game.Workspace.DisableMove.Value == false then
			game.Workspace.Hitbox.CFrame *= CFrame.new(0,0,-1)
			game.Workspace.CameraPart.CFrame *= CFrame.new(0,0,1)
		end
	end
end