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

Mouse.WheelForward

Mouse.WheelForward

Oct 01 2018, 2:15 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 forward!” when the player scrolls forwards.

mouse.WheelForward:Connect(function()
    print("Wheel went forward!")
end)