input.InputBegan:connect(function(q)if q.UserInputType==Enum.UserInputType.Keyboard then if q.KeyCode==CanToggleMouse.activationkey then if CanToggleMouse.allowed and freemouse==false then freemouse=true else freemouse=false end end end end)
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----

input.InputBegan:connect(function(inputObject)
	if inputObject.UserInputType == Enum.UserInputType.Keyboard then
		if inputObject.KeyCode == CanToggleMouse.activationkey then
			if CanToggleMouse.allowed and freemouse == false then
				freemouse = true
			else
				freemouse = false
			end
		end
	end
end)
