PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Idle

Fired during every heartbeat that the mouse isn’t being passed to another mouse event.

Note, this event should not be used to determine when the mouse is still. As it fires every heartbeat it will fire between Mouse/Move events.

For information on how to obtain the Mouse object, please see the Mouse page.

Developers can find out the position of the mouse in world-space, and if it is pointing at any BasePart using the Mouse/Hit and Mouse/Target properties.

Note, developers are recommended to use UserInputService instead of the Mouse object in new work.


Code Samples


Mouse.Idle

This example demonstrates how mouse events are passed during each frame