MouseBehavior Not Working

Hello, I need help with my uis.MouseBehavior not functioning.

In my fighting game, I set the local mouse behavior to:

uis.MouseBehavior = Enum.MouseBehavior.LockCenter

For some odd reason, the built-in function doesn’t work on my game. I cannot find a fix, I’ve used Alasdair’s method (https://devforum.roblox.com/t/how-to-force-mouse-lock-easily/) and it still won’t lock center.

For some reason, even shift lock wont lock center unless I hold right click while toggled on SL…

I have solved this issue by highlighting all UI in my game and turning off the property called “Modal.” This topic seemed to also affect ShiftLockSwitch from properly “locking” the mouse so if this problem persists in your game, I recommend following my solution, thank you!