function CameraUtils.ConvertCameraModeEnumToStandard(d)if d==Enum.TouchCameraMovementMode.Default then return Enum.ComputerCameraMovementMode.Follow end if d==Enum.ComputerCameraMovementMode.Default then return Enum.ComputerCameraMovementMode.Classic end if d==Enum.TouchCameraMovementMode.Classic or d==Enum.DevTouchCameraMovementMode.Classic or d==Enum.DevComputerCameraMovementMode.Classic or d==Enum.ComputerCameraMovementMode.Classic then return Enum.ComputerCameraMovementMode.Classic end if d==Enum.TouchCameraMovementMode.Follow or d==Enum.DevTouchCameraMovementMode.Follow or d==Enum.DevComputerCameraMovementMode.Follow or d==Enum.ComputerCameraMovementMode.Follow then return Enum.ComputerCameraMovementMode.Follow end if d==Enum.TouchCameraMovementMode.Orbital or d==Enum.DevTouchCameraMovementMode.Orbital or d==Enum.DevComputerCameraMovementMode.Orbital or d==Enum.ComputerCameraMovementMode.Orbital then return Enum.ComputerCameraMovementMode.Orbital end if FFlagUserCameraToggle then if d==Enum.ComputerCameraMovementMode.CameraToggle or d==Enum.DevComputerCameraMovementMode.CameraToggle then return Enum.ComputerCameraMovementMode.CameraToggle end end if d==Enum.DevTouchCameraMovementMode.UserChoice or d==Enum.DevComputerCameraMovementMode.UserChoice then return Enum.DevComputerCameraMovementMode.UserChoice end return Enum.ComputerCameraMovementMode.Classic end return CameraUtils

function CameraUtils.ConvertCameraModeEnumToStandard(enumValue)
	if enumValue == Enum.TouchCameraMovementMode.Default then
		return Enum.ComputerCameraMovementMode.Follow
	end

	if enumValue == Enum.ComputerCameraMovementMode.Default then
		return Enum.ComputerCameraMovementMode.Classic
	end

	if enumValue == Enum.TouchCameraMovementMode.Classic or
		enumValue == Enum.DevTouchCameraMovementMode.Classic or
		enumValue == Enum.DevComputerCameraMovementMode.Classic or
		enumValue == Enum.ComputerCameraMovementMode.Classic then
		return Enum.ComputerCameraMovementMode.Classic
	end

	if enumValue == Enum.TouchCameraMovementMode.Follow or
		enumValue == Enum.DevTouchCameraMovementMode.Follow or
		enumValue == Enum.DevComputerCameraMovementMode.Follow or
		enumValue == Enum.ComputerCameraMovementMode.Follow then
		return Enum.ComputerCameraMovementMode.Follow
	end

	if enumValue == Enum.TouchCameraMovementMode.Orbital or
		enumValue == Enum.DevTouchCameraMovementMode.Orbital or
		enumValue == Enum.DevComputerCameraMovementMode.Orbital or
		enumValue == Enum.ComputerCameraMovementMode.Orbital then
		return Enum.ComputerCameraMovementMode.Orbital
	end

	if FFlagUserCameraToggle then
		if enumValue == Enum.ComputerCameraMovementMode.CameraToggle or
			enumValue == Enum.DevComputerCameraMovementMode.CameraToggle then
			return Enum.ComputerCameraMovementMode.CameraToggle
		end
	end

	-- Note: Only the Dev versions of the Enums have UserChoice as an option
	if enumValue == Enum.DevTouchCameraMovementMode.UserChoice or
		enumValue == Enum.DevComputerCameraMovementMode.UserChoice then
		return Enum.DevComputerCameraMovementMode.UserChoice
	end

	-- For any unmapped options return Classic camera
	return Enum.ComputerCameraMovementMode.Classic
end

return CameraUtils

