Is there a way to force a player out of ShiftLock?

I’ve read up on posts about forcing a player into ShiftLock, but not about forcing them out of it. Is there a way I can implement this into a LocalScript?

3 Likes

I’m pretty sure there is something to disable ShiftLock as some developers have blocked ShiftLock in the players settings, I just don’t know how to do it though.

I found this after a quick (5 min) search: Custom center-locked mouse camera control toggle - #4 by 1waffle1

1 Like

I don’t know how to toggle a player’s mouse-lock but you can enable or disable the option to mouse-lock by changing this property of StarterPlayer: https://developer.roblox.com/en-us/api-reference/property/StarterPlayer/EnableMouseLockOption

1 Like

I believe its pretty easy, you can read about it on the developer site: Player.DevEnableMouseLock

Edit: The great thing about this is that you can enable/disable MouseLock during the game

1 Like

There’s a property in StarterPlayer that allows you to disable ShiftLock.

Well the thing is, this does take the player out of shiftlock, but the mouse and camera still acts as though shiftlock was activated.

3 Likes