local l=require(((game:GetService("\067\104\097\116")):WaitForChild("\067\108\105\101\110\116\067\104\097\116\077\111\100\117\108\101\115")):WaitForChild("\067\104\097\116\083\101\116\116\105\110\103\115"))local i=game:GetService("\083\116\097\114\116\101\114\071\117\105")function SetCoreGuiChatConnections(l)local x=0 while true do if x<10 then else break end x=x+1 local L,D=pcall(function()i:SetCore("\067\111\114\101\071\117\105\067\104\097\116\067\111\110\110\101\099\116\105\111\110\115",l)end)if not L then else break end if not L then if x==10 then error("\069\114\114\111\114 \099\097\108\108\105\110\103 \083\101\116\067\111\114\101 \067\111\114\101\071\117\105\067\104\097\116\067\111\110\110\101\099\116\105\111\110\115\058 "..D)end end wait()end end function checkBothChatTypesDisabled()if l.BubbleChatEnabled~=nil then if l.ClassicChatEnabled~=nil then else return false end else return false end return not(l.BubbleChatEnabled or l.ClassicChatEnabled)end if not(game:GetService("\071\117\105\083\101\114\118\105\099\101")):IsTenFootInterface()and not(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).VREnabled then if checkBothChatTypesDisabled()then local l={ChatWindow={}}l.ChatWindow.ChatTypes={}l.ChatWindow.ChatTypes.BubbleChatEnabled=false l.ChatWindow.ChatTypes.ClassicChatEnabled=false SetCoreGuiChatConnections(l)return end else return end;(function()local i={ChatWindow={};SetCore={},GetCore={}}i.ChatWindow.ChatTypes={}i.ChatWindow.ChatTypes.BubbleChatEnabled=l.BubbleChatEnabled i.ChatWindow.ChatTypes.ClassicChatEnabled=l.ClassicChatEnabled local x=require(script:WaitForChild("\067\104\097\116\077\097\105\110"))local L=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")L.Name="\084\111\103\103\108\101\086\105\115\105\098\105\108\105\116\121"i.ChatWindow.ToggleVisibility=L local D="\084\111\103\103\108\101\086\105\115\105\098\105\108\105\116\121"L.Event:connect(function(...)x[D](x,...)end)local V=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")V.Name="\083\101\116\086\105\115\105\098\108\101"i.ChatWindow.SetVisible=V D="\083\101\116\086\105\115\105\098\108\101"V.Event:connect(function(...)x[D](x,...)end)local Y=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")Y.Name="\070\111\099\117\115\067\104\097\116\066\097\114"i.ChatWindow.FocusChatBar=Y D="\070\111\099\117\115\067\104\097\116\066\097\114"Y.Event:connect(function(...)x[D](x,...)end)local I=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")I.Name="\071\101\116\086\105\115\105\098\105\108\105\116\121"i.ChatWindow.GetVisibility=I local g="\071\101\116\086\105\115\105\098\105\108\105\116\121"function I.OnInvoke(...)return x[g](x,...)end local J=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")J.Name="\071\101\116\077\101\115\115\097\103\101\067\111\117\110\116"i.ChatWindow.GetMessageCount=J g="\071\101\116\077\101\115\115\097\103\101\067\111\117\110\116"function J.OnInvoke(...)return x[g](x,...)end local H=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")H.Name="\084\111\112\098\097\114\069\110\097\098\108\101\100\067\104\097\110\103\101\100"i.ChatWindow.TopbarEnabledChanged=H local P=H.Event D="\084\111\112\098\097\114\069\110\097\098\108\101\100\067\104\097\110\103\101\100"g=P P.connect(g,function(...)x[D](x,...)end)local q=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")q.Name="\073\115\070\111\099\117\115\101\100"i.ChatWindow.IsFocused=q g="\073\115\070\111\099\117\115\101\100"function q.OnInvoke(...)return x[g](x,...)end local A=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")A.Name="\067\104\097\116\066\097\114\070\111\099\117\115\067\104\097\110\103\101\100"i.ChatWindow.ChatBarFocusChanged=A local w=x.ChatBarFocusChanged local k=A g=w w.connect(g,function(...)k:Fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\086\105\115\105\098\105\108\105\116\121\083\116\097\116\101\067\104\097\110\103\101\100"i.ChatWindow.VisibilityStateChanged=k local T=x.VisibilityStateChanged g=T T.connect(g,function(...)k:Fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\077\101\115\115\097\103\101\115\067\104\097\110\103\101\100"i.ChatWindow.MessagesChanged=k local r=x.MessagesChanged g=r r.connect(g,function(...)k:Fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\077\101\115\115\097\103\101\080\111\115\116\101\100"i.ChatWindow.MessagePosted=k local F=x.MessagePosted g=F F.connect(g,function(...)k:Fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\067\111\114\101\071\117\105\069\110\097\098\108\101\100"i.ChatWindow.CoreGuiEnabled=k local M=k.Event D="\067\111\114\101\071\117\105\069\110\097\098\108\101\100"g=M M.connect(g,function(...)x[D]:fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101"i.SetCore.ChatMakeSystemMessage=k local U=k.Event D="\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101"g=U U.connect(g,function(...)x[D.."\069\118\101\110\116"]:fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"i.SetCore.ChatWindowPosition=k local G=k.Event D="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"g=G G.connect(g,function(...)x[D.."\069\118\101\110\116"]:fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"i.SetCore.ChatWindowSize=k local R=k.Event D="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"g=R R.connect(g,function(...)x[D.."\069\118\101\110\116"]:fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")k.Name="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"i.GetCore.ChatWindowPosition=k g="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"function k.OnInvoke(...)return x["\102"..g](...)end k=Instance.new k=k("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")k.Name="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"i.GetCore.ChatWindowSize=k g="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"function k.OnInvoke(...)return x["\102"..g](...)end k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"i.SetCore.ChatBarDisabled=k local O=k.Event D="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"g=O O.connect(g,function(...)x[D.."\069\118\101\110\116"]:fire(...)end)k=Instance.new k=k("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")k.Name="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"i.GetCore.ChatBarDisabled=k g="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"function k.OnInvoke(...)return x["\102"..g](...)end k=Instance.new k=k("\066\105\110\100\097\098\108\101\069\118\101\110\116")k.Name="\083\112\101\099\105\097\108\075\101\121\080\114\101\115\115\101\100"i.ChatWindow.SpecialKeyPressed=k local u=k.Event D="\083\112\101\099\105\097\108\075\101\121\080\114\101\115\115\101\100"g=u u.connect(g,function(...)x[D](x,...)end)k=SetCoreGuiChatConnections k(i)end)()


local u1 = require(game:GetService("Chat"):WaitForChild("ClientChatModules"):WaitForChild("ChatSettings"));
local l__StarterGui__2 = game:GetService("StarterGui");
function SetCoreGuiChatConnections(p1)
	local v1 = 0;
	while true do
		if v1 < 10 then

		else
			break;
		end;
		v1 = v1 + 1;
		local v2, v3 = pcall(function()
			l__StarterGui__2:SetCore("CoreGuiChatConnections", p1);
		end);
		if not v2 then

		else
			break;
		end;
		if not v2 then
			if v1 == 10 then
				error("Error calling SetCore CoreGuiChatConnections: " .. v3);
			end;
		end;
		wait();	
	end;
end;
function checkBothChatTypesDisabled()
	if u1.BubbleChatEnabled ~= nil then
		if u1.ClassicChatEnabled ~= nil then

		else
			return false;
		end;
	else
		return false;
	end;
	return not (u1.BubbleChatEnabled or u1.ClassicChatEnabled);
end;
if not game:GetService("GuiService"):IsTenFootInterface() and not game:GetService("UserInputService").VREnabled then
	if checkBothChatTypesDisabled() then
		local v4 = {
			ChatWindow = {}
		};
		v4.ChatWindow.ChatTypes = {};
		v4.ChatWindow.ChatTypes.BubbleChatEnabled = false;
		v4.ChatWindow.ChatTypes.ClassicChatEnabled = false;
		SetCoreGuiChatConnections(v4);
		return;
	end;
else
	return;
end;
(function()
	local v5 = {
		ChatWindow = {}, 
		SetCore = {}, 
		GetCore = {}
	};
	v5.ChatWindow.ChatTypes = {};
	v5.ChatWindow.ChatTypes.BubbleChatEnabled = u1.BubbleChatEnabled;
	v5.ChatWindow.ChatTypes.ClassicChatEnabled = u1.ClassicChatEnabled;
	local u3 = require(script:WaitForChild("ChatMain"));
	local v6 = Instance.new("BindableEvent");
	v6.Name = "ToggleVisibility";
	v5.ChatWindow.ToggleVisibility = v6;
	local u4 = "ToggleVisibility";
	v6.Event:connect(function(...)
		u3[u4](u3, ...);
	end);
	local v7 = Instance.new("BindableEvent");
	v7.Name = "SetVisible";
	v5.ChatWindow.SetVisible = v7;
	u4 = "SetVisible";
	v7.Event:connect(function(...)
		u3[u4](u3, ...);
	end);
	local v8 = Instance.new("BindableEvent");
	v8.Name = "FocusChatBar";
	v5.ChatWindow.FocusChatBar = v8;
	u4 = "FocusChatBar";
	v8.Event:connect(function(...)
		u3[u4](u3, ...);
	end);
	local v9 = Instance.new("BindableFunction");
	v9.Name = "GetVisibility";
	v5.ChatWindow.GetVisibility = v9;
	local u5 = "GetVisibility";
	function v9.OnInvoke(...)
		return u3[u5](u3, ...);
	end;
	local v10 = Instance.new("BindableFunction");
	v10.Name = "GetMessageCount";
	v5.ChatWindow.GetMessageCount = v10;
	u5 = "GetMessageCount";
	function v10.OnInvoke(...)
		return u3[u5](u3, ...);
	end;
	local v11 = Instance.new("BindableEvent");
	v11.Name = "TopbarEnabledChanged";
	v5.ChatWindow.TopbarEnabledChanged = v11;
	local l__Event__12 = v11.Event;
	u4 = "TopbarEnabledChanged";
	u5 = l__Event__12;
	l__Event__12.connect(u5, function(...)
		u3[u4](u3, ...);
	end);
	local v13 = Instance.new("BindableFunction");
	v13.Name = "IsFocused";
	v5.ChatWindow.IsFocused = v13;
	u5 = "IsFocused";
	function v13.OnInvoke(...)
		return u3[u5](u3, ...);
	end;
	local v14 = Instance.new("BindableEvent");
	v14.Name = "ChatBarFocusChanged";
	v5.ChatWindow.ChatBarFocusChanged = v14;
	local l__ChatBarFocusChanged__15 = u3.ChatBarFocusChanged;
	local u6 = v14;
	u5 = l__ChatBarFocusChanged__15;
	l__ChatBarFocusChanged__15.connect(u5, function(...)
		u6:Fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "VisibilityStateChanged";
	v5.ChatWindow.VisibilityStateChanged = u6;
	local l__VisibilityStateChanged__16 = u3.VisibilityStateChanged;
	u5 = l__VisibilityStateChanged__16;
	l__VisibilityStateChanged__16.connect(u5, function(...)
		u6:Fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "MessagesChanged";
	v5.ChatWindow.MessagesChanged = u6;
	local l__MessagesChanged__17 = u3.MessagesChanged;
	u5 = l__MessagesChanged__17;
	l__MessagesChanged__17.connect(u5, function(...)
		u6:Fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "MessagePosted";
	v5.ChatWindow.MessagePosted = u6;
	local l__MessagePosted__18 = u3.MessagePosted;
	u5 = l__MessagePosted__18;
	l__MessagePosted__18.connect(u5, function(...)
		u6:Fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "CoreGuiEnabled";
	v5.ChatWindow.CoreGuiEnabled = u6;
	local l__Event__19 = u6.Event;
	u4 = "CoreGuiEnabled";
	u5 = l__Event__19;
	l__Event__19.connect(u5, function(...)
		u3[u4]:fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "ChatMakeSystemMessage";
	v5.SetCore.ChatMakeSystemMessage = u6;
	local l__Event__20 = u6.Event;
	u4 = "ChatMakeSystemMessage";
	u5 = l__Event__20;
	l__Event__20.connect(u5, function(...)
		u3[u4 .. "Event"]:fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "ChatWindowPosition";
	v5.SetCore.ChatWindowPosition = u6;
	local l__Event__21 = u6.Event;
	u4 = "ChatWindowPosition";
	u5 = l__Event__21;
	l__Event__21.connect(u5, function(...)
		u3[u4 .. "Event"]:fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "ChatWindowSize";
	v5.SetCore.ChatWindowSize = u6;
	local l__Event__22 = u6.Event;
	u4 = "ChatWindowSize";
	u5 = l__Event__22;
	l__Event__22.connect(u5, function(...)
		u3[u4 .. "Event"]:fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableFunction");
	u6.Name = "ChatWindowPosition";
	v5.GetCore.ChatWindowPosition = u6;
	u5 = "ChatWindowPosition";
	function u6.OnInvoke(...)
		return u3["f" .. u5](...);
	end;
	u6 = Instance.new;
	u6 = u6("BindableFunction");
	u6.Name = "ChatWindowSize";
	v5.GetCore.ChatWindowSize = u6;
	u5 = "ChatWindowSize";
	function u6.OnInvoke(...)
		return u3["f" .. u5](...);
	end;
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "ChatBarDisabled";
	v5.SetCore.ChatBarDisabled = u6;
	local l__Event__23 = u6.Event;
	u4 = "ChatBarDisabled";
	u5 = l__Event__23;
	l__Event__23.connect(u5, function(...)
		u3[u4 .. "Event"]:fire(...);
	end);
	u6 = Instance.new;
	u6 = u6("BindableFunction");
	u6.Name = "ChatBarDisabled";
	v5.GetCore.ChatBarDisabled = u6;
	u5 = "ChatBarDisabled";
	function u6.OnInvoke(...)
		return u3["f" .. u5](...);
	end;
	u6 = Instance.new;
	u6 = u6("BindableEvent");
	u6.Name = "SpecialKeyPressed";
	v5.ChatWindow.SpecialKeyPressed = u6;
	local l__Event__24 = u6.Event;
	u4 = "SpecialKeyPressed";
	u5 = l__Event__24;
	l__Event__24.connect(u5, function(...)
		u3[u4](u3, ...);
	end);
	u6 = SetCoreGuiChatConnections;
	u6(v5);
end)();

