WheelForward (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
I meant, just the content not the format
>Camoy
Added example
Line 7: Line 7:
|}}</onlyinclude>
|}}</onlyinclude>
|}
|}
{{Example|<pre>
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)
</pre>}}

Revision as of 16:10, 29 August 2010

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)