How to unlock mouse from mid screen

How to unlock the mouse from being stuck from the center of the screen due to first person???
I am trying to make a inventory gui like minecraft but i had that problem. Can anybody pls help me???
Ty for reading this and have a nice day

1 Like

Create a frame and set it’s transparency to 1.
Create a LocalScript into the frame and write this:

script.Parent.Modal = true
1 Like

If you don’t want to use scripts, instead insert a ButtonFramd and set it’s Modal property to true. Basically the same thing as above but without a script.