:CameraPanUnits() alternative

The title says what I want. Are there any alternatives to :CameraPanUnits?

Does panning mean looking up and down? If so, try

workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(n, 0, 0)

where n is the pan amount in radians. The n should either be in the x or z coordinate. I can never remember which, so I just put it in the x.