Preventing scrolling into first person when UI is open

If somebody was to zoom in while UI is open they’d be stuck, as the mouse is stuck in the centre. Only way out is resetting (which is unpreferable)

2 Likes

Set the Modal property of one of the buttons to true. Whenever it is visible, first person will have a free cursor.

4 Likes
GuiObject.Modal = true
--This prevents the mouse from being locked in place
6 Likes