GUI.ToggleMouseLock=function(q)q=q~=nil and q or false if not lockMouse then local q=Instance.new("\083\099\114\101\101\110\071\117\105")q.Name="\076\111\099\107\077\111\117\115\101"q.Parent=playerGui lockMouse=Instance.new("\084\101\120\116\066\117\116\116\111\110")lockMouse.Visible=false lockMouse.BackgroundTransparency=1 lockMouse.Text=""lockMouse.BorderSizePixel=0 lockMouse.Size=UDim2.new(0,1,0,1)lockMouse.Parent=q end lockMouse.Modal=q lockMouse.Visible=q end GUI.ToggleCursor=function(q)q=q~=nil and q or false _L.Services.UserInputService.MouseIconEnabled=q end
--- Mouse lock (prevents from being unable to zoom in first person because scrollframes
GUI.ToggleMouseLock = function(newState)
	newState = (newState ~= nil and newState or false)
	--
	if not lockMouse then
		local lockMouseScreen = Instance.new("ScreenGui")
		lockMouseScreen.Name = "LockMouse"
		lockMouseScreen.Parent = playerGui
		--
		lockMouse = Instance.new("TextButton")
		lockMouse.Visible = false
		lockMouse.BackgroundTransparency = 1
		lockMouse.Text = ""
		lockMouse.BorderSizePixel = 0
		lockMouse.Size = UDim2.new(0, 1, 0, 1)
		lockMouse.Parent = lockMouseScreen
	end
	--
	lockMouse.Modal = newState
	lockMouse.Visible = newState
end

GUI.ToggleCursor = function(newState)
	newState = (newState ~= nil and newState or false)
	--
	_L.Services.UserInputService.MouseIconEnabled = newState
end
