client=nil service=nil return function(c)local m=nil local V={}local function R(c,R,O,L,Z,D)print(L)local f={Size=UDim2.new(1,0,0,50);BackgroundTransparency=1,AutomaticSize="\089"}local d={}local v={ClassName="\070\114\097\109\101";Name="\076\111\103\103\101\100\073\116\101\109";Size=UDim2.new(1,-10,1,-10);Position=UDim2.new(0,5,0,5);BackgroundTransparency=.5,AutomaticSize="\089"}local a={}local b={ClassName="\084\101\120\116\066\117\116\116\111\110",Name="\070\117\110\099\116\105\111\110",Size=UDim2.new(1,-55,0,15),Position=UDim2.new(0,55,0,30)}if D then local c="\067\108\105\099\107\097\098\108\101"else v7="\078\111\116 \099\108\105\099\107\097\098\108\101"end b.Text=v7 b.TextSize="\049\052"b.TextXAlignment="\082\105\103\104\116"b.BackgroundTransparency=1 b.OnClick=D a[1]={ClassName="\073\109\097\103\101\066\117\116\116\111\110",Name="\073\099\111\110",Size=UDim2.new(0,48,0,48);Position=UDim2.new(0,1,0,1);Image=L;OnClick=D;BackgroundTransparency=1}a[2]={ClassName="\084\101\120\116\066\117\116\116\111\110",Name="\084\105\116\108\101",Size=UDim2.new(1,-55,0,15);Position=UDim2.new(0,55,0,0),Text=R;TextSize="\049\052",TextXAlignment="\076\101\102\116",BackgroundTransparency=1;OnClick=D}a[3]={ClassName="\084\101\120\116\066\117\116\116\111\110";Name="\084\121\112\101";Size=UDim2.new(1,-55,0,15),Position=UDim2.new(0,55,0,0),Text=c,TextSize="\049\052",TextXAlignment="\082\105\103\104\116";BackgroundTransparency=1,OnClick=D}a[4]={ClassName="\084\101\120\116\066\117\116\116\111\110",Name="\084\105\109\101",Size=UDim2.new(1,-55,0,15);Position=UDim2.new(0,55,0,15),Text=Z,TextSize="\049\052";TextXAlignment="\082\105\103\104\116";BackgroundTransparency=1,OnClick=D}a[5]=b a[6]={ClassName="\084\101\120\116\066\117\116\116\111\110";Name="\077\101\115\115\097\103\101";Size=UDim2.new(1,-55,0,10);Position=UDim2.new(0,55,0,15);Text=O,TextXAlignment="\076\101\102\116",TextYAlignment="\084\111\112",AutomaticSize="\089",TextWrapped=true;TextScaled=false;RichText=true,BackgroundTransparency=1;OnClick=D}v.Children=a d[1]=v f.Children=d table.insert(V,m:Add("\070\114\097\109\101",f))if#V>200 then V[1]:Destroy()table.remove(V,1)end end local O,L=xpcall(function()return service.LocalizationService:GetCountryRegionForPlayerAsync(service.Players.LocalPlayer)=="\085\083"end,function()return false end)local Z={Name="\067\111\109\109\117\110\105\099\097\116\105\111\110\115\067\101\110\116\101\114"}if L then local c="\067\111\109\109\117\110\105\099\097\116\105\111\110\115 \067\101\110\116\101\114"else v11="\067\111\109\109\117\110\105\099\097\116\105\111\110\115 \067\101\110\116\101\114"end Z.Title=v11 Z.Icon=client.MatIcons.Forum Z.Size={500,300}function Z.OnClose()client.Variables.CommsCenterBindableEvent=nil end local D=client.UI.Make("\087\105\110\100\111\119",Z)m=D:Add("\083\099\114\111\108\108\105\110\103\070\114\097\109\101",{Size=UDim2.new(1,0,1,0);Position=UDim2.new(0,0,0,0);CanvasSize=UDim2.new(0,0,0,0),BackgroundTransparency=.9})local f=service.New("\085\073\076\105\115\116\076\097\121\111\117\116",{Parent=m,FillDirection="\086\101\114\116\105\099\097\108",HorizontalAlignment="\076\101\102\116",VerticalAlignment="\066\111\116\116\111\109",SortOrder="\076\097\121\111\117\116\079\114\100\101\114"});(f:GetPropertyChangedSignal("\065\098\115\111\108\117\116\101\067\111\110\116\101\110\116\083\105\122\101")):Connect(function()m.CanvasSize=UDim2.new(0,0,0,f.AbsoluteContentSize.Y)m.CanvasPosition=Vector2.new(0,f.AbsoluteContentSize.Y)end)if client.Variables.CommunicationsHistory then for c,m in ipairs(client.Variables.CommunicationsHistory)do R(m.Type,m.Title,m.Message,m.Icon,m.Time,m.Function)end end service.HookEvent("\067\111\109\109\115\067\101\110\116\101\114",function(c)R(c.Type,c.Title,c.Message,c.Icon,c.Time,c.Function)end)local d=D.gTable D:Ready()end


client = nil;
service = nil;
return function(p1)
	local u1 = nil;
	local u2 = {};
	local function v1(p2, p3, p4, p5, p6, p7)
		print(p5);
		local v2 = {
			Size = UDim2.new(1, 0, 0, 50), 
			BackgroundTransparency = 1, 
			AutomaticSize = "Y"
		};
		local v3 = {};
		local v4 = {
			ClassName = "Frame", 
			Name = "LoggedItem", 
			Size = UDim2.new(1, -10, 1, -10), 
			Position = UDim2.new(0, 5, 0, 5), 
			BackgroundTransparency = 0.5, 
			AutomaticSize = "Y"
		};
		local v5 = {};
		local v6 = {
			ClassName = "TextButton", 
			Name = "Function", 
			Size = UDim2.new(1, -55, 0, 15), 
			Position = UDim2.new(0, 55, 0, 30)
		};
		if p7 then
			local v7 = "Clickable";
		else
			v7 = "Not clickable";
		end;
		v6.Text = v7;
		v6.TextSize = "14";
		v6.TextXAlignment = "Right";
		v6.BackgroundTransparency = 1;
		v6.OnClick = p7;
		v5[1] = {
			ClassName = "ImageButton", 
			Name = "Icon", 
			Size = UDim2.new(0, 48, 0, 48), 
			Position = UDim2.new(0, 1, 0, 1), 
			Image = p5, 
			OnClick = p7, 
			BackgroundTransparency = 1
		};
		v5[2] = {
			ClassName = "TextButton", 
			Name = "Title", 
			Size = UDim2.new(1, -55, 0, 15), 
			Position = UDim2.new(0, 55, 0, 0), 
			Text = p3, 
			TextSize = "14", 
			TextXAlignment = "Left", 
			BackgroundTransparency = 1, 
			OnClick = p7
		};
		v5[3] = {
			ClassName = "TextButton", 
			Name = "Type", 
			Size = UDim2.new(1, -55, 0, 15), 
			Position = UDim2.new(0, 55, 0, 0), 
			Text = p2, 
			TextSize = "14", 
			TextXAlignment = "Right", 
			BackgroundTransparency = 1, 
			OnClick = p7
		};
		v5[4] = {
			ClassName = "TextButton", 
			Name = "Time", 
			Size = UDim2.new(1, -55, 0, 15), 
			Position = UDim2.new(0, 55, 0, 15), 
			Text = p6, 
			TextSize = "14", 
			TextXAlignment = "Right", 
			BackgroundTransparency = 1, 
			OnClick = p7
		};
		v5[5] = v6;
		v5[6] = {
			ClassName = "TextButton", 
			Name = "Message", 
			Size = UDim2.new(1, -55, 0, 10), 
			Position = UDim2.new(0, 55, 0, 15), 
			Text = p4, 
			TextXAlignment = "Left", 
			TextYAlignment = "Top", 
			AutomaticSize = "Y", 
			TextWrapped = true, 
			TextScaled = false, 
			RichText = true, 
			BackgroundTransparency = 1, 
			OnClick = p7
		};
		v4.Children = v5;
		v3[1] = v4;
		v2.Children = v3;
		table.insert(u2, (u1:Add("Frame", v2)));
		if #u2 > 200 then
			u2[1]:Destroy();
			table.remove(u2, 1);
		end;
	end;
	local v8, v9 = xpcall(function()
		return service.LocalizationService:GetCountryRegionForPlayerAsync(service.Players.LocalPlayer) == "US";
	end, function()
		return false;
	end);
	local v10 = {
		Name = "CommunicationsCenter"
	};
	if v9 then
		local v11 = "Communications Center";
	else
		v11 = "Communications Center";
	end;
	v10.Title = v11;
	v10.Icon = client.MatIcons.Forum;
	v10.Size = { 500, 300 };
	function v10.OnClose()
		client.Variables.CommsCenterBindableEvent = nil;
	end;
	local v12 = client.UI.Make("Window", v10);
	u1 = v12:Add("ScrollingFrame", {
		Size = UDim2.new(1, 0, 1, 0), 
		Position = UDim2.new(0, 0, 0, 0), 
		CanvasSize = UDim2.new(0, 0, 0, 0), 
		BackgroundTransparency = 0.9
	});
	local v13 = service.New("UIListLayout", {
		Parent = u1, 
		FillDirection = "Vertical", 
		HorizontalAlignment = "Left", 
		VerticalAlignment = "Bottom", 
		SortOrder = "LayoutOrder"
	});
	v13:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
		u1.CanvasSize = UDim2.new(0, 0, 0, v13.AbsoluteContentSize.Y);
		u1.CanvasPosition = Vector2.new(0, v13.AbsoluteContentSize.Y);
	end);
	if client.Variables.CommunicationsHistory then
		for v14, v15 in ipairs(client.Variables.CommunicationsHistory) do
			v1(v15.Type, v15.Title, v15.Message, v15.Icon, v15.Time, v15.Function);
		end;
	end;
	service.HookEvent("CommsCenter", function(p8)
		v1(p8.Type, p8.Title, p8.Message, p8.Icon, p8.Time, p8.Function);
	end);
	local l__gTable__16 = v12.gTable;
	v12:Ready();
end;
