Player Character Direction Zoom/Mouselock

In Roblox players can zoom in or enable mouselock to force their character to look in the direction of the camera.

How can I temporarily disable this behavior without fully removing mouselock or removing the ability to zoom in? (I want to have control over the direction of the character)

You can use one of the many CameraType enumerations.

local camera = workspace.CurrentCamera
local camera.CameraType = Enum.CameraType.Scriptable

Scriptable is the one which is most often used when you need to directly control the camera programmatically (in a script).