WheelForward (Event)

From Legacy Roblox Wiki
Revision as of 16:10, 29 August 2010 by >Camoy (Added example)
Jump to navigationJump to search
WheelForward ( )
Description Fired when the mouse wheel is moved forward.
Member of: [[RBX.lua.Mouse (Object)|Mouse]]
Example
local tool = Instance.new("Tool")
tool.Parent = game.Players.Player.Backpack
local function onActivation(mouse)
  mouse.WheelForward:connect(function()
    print("Wheel moved forward")
  end)
end
tool.Activated:connect(onActivation)