local v={}function MaterialTool.Equip()ShowUI()end function MaterialTool.Unequip()HideUI()ClearConnections()end function ClearConnections()for o,F in pairs(v)do F:disconnect()v[o]=nil end end

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;
