local function h(h)local o=Enum.UserInputType.MouseButton1 local W=Enum.UserInputType.Touch if h.UserInputType==o or h.UserInputType==W then dlg.Visible=false end end

local function closeDlg(input)
	local mouse = Enum.UserInputType.MouseButton1
	local touch = Enum.UserInputType.Touch
	
	if input.UserInputType == mouse or input.UserInputType == touch then
		dlg.Visible = false
	end
end -- closeDlg()