Connections={}function ClearConnections()for U,A in pairs(Connections)do A:disconnect()Connections[U]=nil end end function InitializeUI()if UI then return end UI=(Create("\083\099\114\101\101\110\071\117\105"))({Name="\066\117\105\108\100\105\110\103 \084\111\111\108\115 \098\121 \070\051\088 \040\085\073\041"})Dock=(Cheer(Tool.Interfaces.Dock,UI)).Start(getfenv(0))end

Connections = {};

function ClearConnections()
	-- Clears and disconnects temporary connections
	for Index, Connection in pairs(Connections) do
		Connection:disconnect();
		Connections[Index] = nil;
	end;
end;

function InitializeUI()
	-- Sets up the UI

	-- Ensure UI has not yet been initialized
	if UI then
		return;
	end;

	-- Create the root UI
	UI = Create 'ScreenGui' {
		Name = 'Building Tools by F3X (UI)'
	};

	-- Set up dock
	Dock = Cheer(Tool.Interfaces.Dock, UI).Start(getfenv(0));

end;
