Skip to content

Enum

Enum.MouseBehavior

Sets the user's mouse behavior.

Official docs ↗
ItemValueSummary
Enum.MouseBehavior.Default0The mouse moves freely around the user's screen.
Enum.MouseBehavior.LockCenter1The mouse is locked and cannot move from the center of the user's screen.
Enum.MouseBehavior.LockCurrentPosition2The mouse is locked and cannot move from its current position on the user's screen at the time of locking.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.