Mouse not locked while in first person or shift lock

Hello!

I’m curious why the mouse isn’t locked in the middle of the screen while in first person or shift lock, like it’s supposed to.

Is there any way to make it lock again?

UserInputService.MouseBehaviour = Enum.MouseBehaviour.LockCenter -- ?!?!?!?!?
2 Likes

If you have an gui button, check the properties if modal is enabled. If its enabled, disable it

3 Likes

I hate a ton of buttons, it would take a while to go through all.

1 Like

You could Shift+click on the buttons to select

1 Like

Use a ‘for i, v in pairs’ script in the command bar to disable them all at once.

Good idea, I’ll try that out thanks.

1 Like

Apparently some button had modal enabled. Thanks to @GhostShinjiro for the tip!

1 Like