RBX.lua.Mouse (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
new format
>Sncplay42 (Added Local template, clarified usage) |
>Camoy (new format) |
||
Line 1: | Line 1: | ||
{{ObjectPage|name=Mouse|{{Local}} | |||
The '''Mouse''' object is the code interface for the computer mouse, including buttons and mouse position. | The '''Mouse''' object is the code interface for the computer mouse, including buttons and mouse position. | ||
A Mouse object is not creatable, but can be obtained using the [[Selected]] event of [[HopperBin]]s or the [[Equipped]] event of [[Tool]]s. A Mouse object is only usable while the [[Player]] has the Tool or HopperBin selected. Once they are deselected, the Mouse's events will no longer be triggered and reading the properties will cause an error. | A Mouse object is not creatable, but can be obtained using the [[Selected]] event of [[HopperBin]]s or the [[Equipped]] event of [[Tool]]s. A Mouse object is only usable while the [[Player]] has the Tool or HopperBin selected. Once they are deselected, the Mouse's events will no longer be triggered and reading the properties will cause an error.}} | ||