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
-- 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