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 | |||
|name = Move | |||
name = Move | |||
|description = Fired when the mouse is moved. | |description = Fired when the mouse is moved. | ||
|object = | |object = Mouse | ||
}}</onlyinclude> | |||
{{Example|<pre> | {{clear floats}} | ||
{{Example| This is an example for [[HopperBin]]'s. | |||
local function | <pre> | ||
local function onSelected(Mouse) | |||
Mouse.Move:connect(function() | |||
print("Mouse moved") | |||
end) | |||
end | end | ||
script.Parent.Selected:connect(onSelected) | |||
</pre>}} | </pre>}} | ||
[[Category:Events]] |