Move (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Example added
>Camoy
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|
<onlyinclude>{{Event
|<onlyinclude>{{Event|
|name = Move
name = Move
|arguments =
|description = Fired when the mouse is moved.
|description = Fired when the mouse is moved.
|object = [[Mouse]]
|object = Mouse
|}}</onlyinclude>
}}</onlyinclude>
|}
 
{{Example|<pre>
{{clear floats}}
local tool = Instance.new("Tool")
 
tool.Parent = game.Players.Player.Backpack
{{Example| This is an example for [[HopperBin]]'s.
local function onActivation(mouse)
<pre>
  mouse.Move:connect(function()
local function onSelected(Mouse)
    print("Mouse moved")
    Mouse.Move:connect(function()
  end)
        print("Mouse moved")
    end)
end
end
tool.Activated:connect(onActivation)
 
script.Parent.Selected:connect(onSelected)
</pre>}}
</pre>}}
[[Category:Events]]

Latest revision as of 16:03, 13 March 2011

Move ( )
Description Fired when the mouse is moved.
Member of: Mouse


Example
This is an example for HopperBin's.
local function onSelected(Mouse)
    Mouse.Move:connect(function()
        print("Mouse moved")
    end)
end

script.Parent.Selected:connect(onSelected)