local E={}function MaterialTool.Equip()ShowUI()end function MaterialTool.Unequip()HideUI()ClearConnections()end function ClearConnections()for R,S in pairs(E)do S:disconnect()E[R]=nil end end
-- Container for temporary connections (disconnected automatically)
local Connections = {}

function MaterialTool.Equip()
	-- Enables the tool's equipped functionality

	-- Start up our interface
	ShowUI()
end

function MaterialTool.Unequip()
	-- Disables the tool's equipped functionality

	-- Clear unnecessary resources
	HideUI()
	ClearConnections()
end

function ClearConnections()
	-- Clears out temporary connections

	for ConnectionKey, Connection in pairs(Connections) do
		Connection:disconnect()
		Connections[ConnectionKey] = nil
	end
end
