So I was trying to make a first person game, when I press some keypad like "C" it should open the gui and the mouse will uncentered. Can someone now what method should I use to make the mouse uncentered. Thank you.
ImageButtons and TextButtons have a Modal
property, which when set will allow the player to freely move their mouse. Note that it only applies when the button is visible, so you don't need to worry about setting/unsetting it through a script, and you only need to set it on one button.