Understanding MouseDelta

So i want to understand how MouseDelta works.I have read the developer hub but i still dont get it how can the position of the mouse change when it is locked and it cant move.

1 Like

It basically acts like the mouse is moving, it’s mostly used when creating custom shift-lock to determine how much the player moved his mouse so you can rotate his camera and character accordingly.

1 Like

basically mousedelta calculates the movement of the mouse.

Exactly, it calculates the estimated movement of the mouse, the mouse isn’t moving.

1 Like

https://developer.roblox.com/en-us/api-reference/function/UserInputService/GetMouseDelta
You could have just consulted the official documentation.