The WheelBackward event fires when the mouse wheel is scrolled backwards. Possible uses for this event include toggling a gun’s scope in a first person shooter (FPS) or zooming the player’s camera.
This can be used alongside the scrolling forward event,
For information on how to obtain the
Mouse object, please see the
Note, developers are recommended to use
UserInputService instead of the
Mouse object in new work.
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
/HopperBin or the
/Player/GetMouse method. It will print “Wheel went backwards!” when the player scrolls backwards.