local w=openGui:GetChildren()for w,G in ipairs(w)do if G:IsA("\084\101\120\116\066\117\116\116\111\110")then G.MouseButton1Click:Connect(function()openGui.Visible=false toggleWindow(G)end)end end
-- Set up the event handlers for the TextButton icons in the gui.Main frame
local buttons = openGui:GetChildren()
for _, button in ipairs(buttons) do
	if button:IsA("TextButton") then
		button.MouseButton1Click:Connect(function()
			openGui.Visible = false
			toggleWindow(button)
		end)
	end
end
