PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Mouse.WheelBackward

Mouse.WheelBackward

Oct 01 2018, 2:16 AM PST

The below example assumes that you have already got the player’s mouse (and set it as a variable named ‘mouse’), whether by use of a /Tool, /HopperBin or the /Player/GetMouse method. It will print “Wheel went backwards!” when the player scrolls backwards.

mouse.WheelBackward:Connect(function()
    print("Wheel went backwards!")
end)