How to find the mouses movement whilst it is locked in the middle of the screen

I am wondering how to get the raw x, y values of the mouse or something similar whilst the mouse in locked in the middle of the screen eg first person.

sorry, the explanation is very good.

Sounds like you are describing UserInputService | Roblox Creator Documentation.

how would I lock the mouse movement?