local A={}function MaterialTool.Equip(A)A:ShowUI()end function MaterialTool.Unequip(A)A:HideUI()ClearConnections()end function ClearConnections()for n,M in pairs(A)do M:Disconnect()A[n]=nil end end

local Connections = {};

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

	-- Start up our interface
	self:ShowUI()

end;

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

	-- Clear unnecessary resources
	self:HideUI();
	ClearConnections();

end;

function ClearConnections()
	-- Clears out temporary connections

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

end;
