Cursor not locking in place while shift-lock is active

Randomly, my game has stopped the mouse cursor from locking onto the center of the screen while shift-lock is enabled. below is a copy of the game in question. the bug has connections to something in ReplicatedStorage.ToolStorage (Deleting it entirely fixes the issue) that I cannot find the source of this issue. No scripts in this location have any affect on the players mouse or camera.

Do you have a ImageButton or a TextButton that has Modal turned on? That might be the issue, since if Modal is on, the mouse will not lock, only will if you hold Right Click.

1 Like

Someone on Reddit asked the same thing, and yes, I did. What doesn’t make any sense is that it does this while the parent GUIs aren’t visible.

If the UI(the button) is not visible(unchecking Visible), then Modal wouldn’t work. Setting the UI’s parents instead would still make it work for some reason.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.