How can i make the mouse pointer stay locked at the center of the screen, like the shift lock mechanic. I tried looking at the script for it but i don't see how it works
✓ ANSWER ACCEPTED
Locking mouse into the center of the screen?
1 answer
✓ Accepted answer
-- Lock the mouse in the center of the screen
game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter
-- Or you can lock the mouse where it is
game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
-- Reset the mouse back to it's normal state
game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.Default
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Dude thank you! But where did you get this information?? I tried looking for this everywhere in the wiki!
I found it on the wiki under UserInputService http://wiki.roblox.com/index.php?title=API:Class/UserInputService/MouseBehavior