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)
Set the Modal property of one of the buttons to true. Whenever it is visible, first person will have a free cursor.
GuiObject.Modal = true
--This prevents the mouse from being locked in place