Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to force a player out of shift lock?

Greetings,

The title says it all. i want to use a gui that depends on mouse movement and when the player is in shift lock it doesn't work and the camera is wobbly anyway so i don't want it to happen at all. However trying to research this I only found solutions that are now outdated due to core script updates. So now I am wondering if it is currently possible at all?

1 answer

To disable Mouse Lock entirely simply go into StarterPlayer and search for the value EnableMouseLockOption. This toggles the ability for a newly joined player to use Mouse Lock.

If you only want to disable it for a time then use DevEnableMouseLock.

Ex.

local Player = game.Players.LocalPlayer

Player.DevEnableMouseLock = False

wait(1)

Player.DevEnableMouseLock = True

This script disables the ability to Mouse Lock for a second then enables it afterwards.

1 comment

0

Don't capitalise the False and True.

This discussion is preserved as it was. New answers, comments, and votes are closed.