Help with camera position moving relative to mouse position

Hey, so at the moment I have a script that moves a camera part relative to the position of the players mouse.

I would like to know if it’s possible to make it so that the camera only moves when the mouse is moved to the right or upwards on the screen. The script is below,

local Camera = game.Workspace.Camera
local mouse = game.players.LocalPlayer:GetMouse()
local TweenService = game:GetService("TweenService")
local TweenInfo1 = TweenInfo.new(.05, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local maxTilt = 50

game:GetService("RunService").RenderStepped:Connect(function()
		TweenService:Create(Camera,TweenInfo1,{CFrame = workspace.CameraPart2.CFrame * CFrame.Angles(math.rad((((
			mouse.Y - mouse.ViewSizeY / 2) / mouse.ViewSizeY)) * -maxTilt),
			math.rad((((mouse.X - mouse.ViewSizeX / 2) / mouse.ViewSizeX)) * -maxTilt),0)}):Play()
end)

Can somebody please help with this?