PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

MouseBehavior

MouseBehavior

Used with the /UserInputService/MouseBehavior property of /UserInputService to set how the user’s mouse behaves.


Enums

Name Value Description

Default

0

The mouse moves freely around the user’s screen.

LockCenter

1

The mouse is locked, and cannot move from, the center of the user’s screen.

LockCurrentPosition

2

The mouse is locked, and cannot move from, it’s current position on the user’s screen at the time of locking.

Referenced by:

  • UserInputService/MouseBehavior