local function W()return LocalPlayer.DevEnableMouseLock and(GameSettings.ControlMode==Enum.ControlMode.MouseLockSwitch and(LocalPlayer.DevComputerMovementMode~=Enum.DevComputerMovementMode.ClickToMove and(GameSettings.ComputerMovementMode~=Enum.ComputerMovementMode.ClickToMove and(LocalPlayer.DevComputerMovementMode~=Enum.DevComputerMovementMode.Scriptable and not UserInputService.GamepadEnabled))))end if not UserInputService.TouchEnabled then IsShiftLockMode=W()end
-- wrapping long conditional in function
local function isShiftLockMode()
	return LocalPlayer.DevEnableMouseLock
		and GameSettings.ControlMode == Enum.ControlMode.MouseLockSwitch
		and LocalPlayer.DevComputerMovementMode ~= Enum.DevComputerMovementMode.ClickToMove
		and GameSettings.ComputerMovementMode ~= Enum.ComputerMovementMode.ClickToMove
		and LocalPlayer.DevComputerMovementMode ~= Enum.DevComputerMovementMode.Scriptable
		and not UserInputService.GamepadEnabled
end

if not UserInputService.TouchEnabled then -- TODO: Remove when safe on mobile
	IsShiftLockMode = isShiftLockMode()
end
