I am trying to make to make a Camera going up when you reach the top of the screen but when i moved my mouse down the script tracking my mouse movement so it follow the mouse movement

local Mouse = game.Players.LocalPlayer:GetMouse()
local Camera = game.Workspace.CurrentCamera

local DefaultCFrame = workspace.Part.CFrame

repeat wait() Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = DefaultCFrame

function Update()
	if Mouse.Y <= 21 then
    local MoveUp = Vector3.new(0,-(Mouse.Y*2), 0)
    Camera.CFrame = DefaultCFrame * CFrame.new(DefaultCFrame.p + MoveUp)
   end		
end

game:GetService("RunService").RenderStepped:Connect(Update) 

Also trying to use while but i don't really know how to use it

local Mouse = game.Players.LocalPlayer:GetMouse()

while Mouse.Y == -36 then 
print("something")

Using Value won't work When you move your mouse too quick the Position getting worst