Unlocking cursor with surfaceguis

Hello, any way I can unlock the mouse in first person. I’ve tried using setting modal to true on a text button but they don’t work on surface guis.

Here is a video.