How to disable shift lock for gui's

I have shiftlock forced on the player when they join the game but I want to know how to disable it when they open a GUI so their mouse isn’t locked.

when you want to disable the shift lock just do

local uis = game:GetService("UserInputService")
uis.MouseBehavior = Enum.MouseBehavior.Default

and just set it to Enum.MouseBehavior.LockCenter when you want to put it back to shift lock

more info: UserInputService | Roblox Creator Documentation

3 Likes

go to starterPlayer and disable MouseLockOption.