I've tried game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter (placed in a LocalScript, of course). This works in Studio but not online. What is the proper way to lock the mouse to the center of the screen?

2 comments

0

Do you mean locking the game in first-person mode, or just anchor the mouse to the center?

0

Anchor mouse to center. The camera is following an object other than the player.