client=nil service=nil return function(b)local E=nil local p={}local function l(b,l,m,M,D,z)print(M)local F={Size=UDim2.new(1,0,0,50),BackgroundTransparency=1;AutomaticSize="\089"}local k={}local i={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 C={}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 z then local b="\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=z C[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=M;OnClick=z,BackgroundTransparency=1}C[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=l,TextSize="\049\052",TextXAlignment="\076\101\102\116",BackgroundTransparency=1,OnClick=z}C[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=b,TextSize="\049\052",TextXAlignment="\082\105\103\104\116";BackgroundTransparency=1,OnClick=z}C[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=D;TextSize="\049\052",TextXAlignment="\082\105\103\104\116";BackgroundTransparency=1,OnClick=z}C[5]=B C[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=m,TextXAlignment="\076\101\102\116",TextYAlignment="\084\111\112";AutomaticSize="\089",TextWrapped=true,TextScaled=false,RichText=true,BackgroundTransparency=1,OnClick=z}i.Children=C k[1]=i F.Children=k table.insert(p,E:Add("\070\114\097\109\101",F))if#p>200 then p[1]:Destroy()table.remove(p,1)end end local m,M=xpcall(function()return service.LocalizationService:GetCountryRegionForPlayerAsync(service.Players.LocalPlayer)=="\085\083"end,function()return false end)local D={Name="\067\111\109\109\117\110\105\099\097\116\105\111\110\115\067\101\110\116\101\114"}if M then local b="\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 D.Title=v11 D.Icon=client.MatIcons.Forum D.Size={500,300}function D.OnClose()client.Variables.CommsCenterBindableEvent=nil end local z=client.UI.Make("\087\105\110\100\111\119",D)E=z: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=E,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()E.CanvasSize=UDim2.new(0,0,0,F.AbsoluteContentSize.Y)E.CanvasPosition=Vector2.new(0,F.AbsoluteContentSize.Y)end)if client.Variables.CommunicationsHistory then for b,E in ipairs(client.Variables.CommunicationsHistory)do l(E.Type,E.Title,E.Message,E.Icon,E.Time,E.Function)end end service.HookEvent("\067\111\109\109\115\067\101\110\116\101\114",function(b)l(b.Type,b.Title,b.Message,b.Icon,b.Time,b.Function)end)local k=z.gTable z:Ready()end
-- Decompiled with the Synapse X Luau decompiler.

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
