local y=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 C=game:GetService("\083\116\097\114\116\101\114\071\117\105")function SetCoreGuiChatConnections(y)local e=0 while true do if e<10 then else break end e=e+1 local E,c=pcall(function()C:SetCore("\067\111\114\101\071\117\105\067\104\097\116\067\111\110\110\101\099\116\105\111\110\115",y)end)if not E then else break end if not E then if e==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 "..c)end end wait()end end function checkBothChatTypesDisabled()if y.BubbleChatEnabled~=nil then if y.ClassicChatEnabled~=nil then else return false end else return false end return not(y.BubbleChatEnabled or y.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 y={ChatWindow={}}y.ChatWindow.ChatTypes={}y.ChatWindow.ChatTypes.BubbleChatEnabled=false y.ChatWindow.ChatTypes.ClassicChatEnabled=false SetCoreGuiChatConnections(y)return end else return end;(function()local C={ChatWindow={};SetCore={},GetCore={}}C.ChatWindow.ChatTypes={}C.ChatWindow.ChatTypes.BubbleChatEnabled=y.BubbleChatEnabled C.ChatWindow.ChatTypes.ClassicChatEnabled=y.ClassicChatEnabled local e=require(script:WaitForChild("\067\104\097\116\077\097\105\110"))local E=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")E.Name="\084\111\103\103\108\101\086\105\115\105\098\105\108\105\116\121"C.ChatWindow.ToggleVisibility=E local c="\084\111\103\103\108\101\086\105\115\105\098\105\108\105\116\121"E.Event:connect(function(...)e[c](e,...)end)local s=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")s.Name="\083\101\116\086\105\115\105\098\108\101"C.ChatWindow.SetVisible=s c="\083\101\116\086\105\115\105\098\108\101"s.Event:connect(function(...)e[c](e,...)end)local O=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")O.Name="\070\111\099\117\115\067\104\097\116\066\097\114"C.ChatWindow.FocusChatBar=O c="\070\111\099\117\115\067\104\097\116\066\097\114"O.Event:connect(function(...)e[c](e,...)end)local o=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")o.Name="\071\101\116\086\105\115\105\098\105\108\105\116\121"C.ChatWindow.GetVisibility=o local t="\071\101\116\086\105\115\105\098\105\108\105\116\121"function o.OnInvoke(...)return e[t](e,...)end local N=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")N.Name="\071\101\116\077\101\115\115\097\103\101\067\111\117\110\116"C.ChatWindow.GetMessageCount=N t="\071\101\116\077\101\115\115\097\103\101\067\111\117\110\116"function N.OnInvoke(...)return e[t](e,...)end local X=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")X.Name="\084\111\112\098\097\114\069\110\097\098\108\101\100\067\104\097\110\103\101\100"C.ChatWindow.TopbarEnabledChanged=X local I=X.Event c="\084\111\112\098\097\114\069\110\097\098\108\101\100\067\104\097\110\103\101\100"t=I I.connect(t,function(...)e[c](e,...)end)local P=Instance.new("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")P.Name="\073\115\070\111\099\117\115\101\100"C.ChatWindow.IsFocused=P t="\073\115\070\111\099\117\115\101\100"function P.OnInvoke(...)return e[t](e,...)end local G=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")G.Name="\067\104\097\116\066\097\114\070\111\099\117\115\067\104\097\110\103\101\100"C.ChatWindow.ChatBarFocusChanged=G local u=e.ChatBarFocusChanged local F=G t=u u.connect(t,function(...)F:Fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\086\105\115\105\098\105\108\105\116\121\083\116\097\116\101\067\104\097\110\103\101\100"C.ChatWindow.VisibilityStateChanged=F local b=e.VisibilityStateChanged t=b b.connect(t,function(...)F:Fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\077\101\115\115\097\103\101\115\067\104\097\110\103\101\100"C.ChatWindow.MessagesChanged=F local V=e.MessagesChanged t=V V.connect(t,function(...)F:Fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\077\101\115\115\097\103\101\080\111\115\116\101\100"C.ChatWindow.MessagePosted=F local B=e.MessagePosted t=B B.connect(t,function(...)F:Fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\067\111\114\101\071\117\105\069\110\097\098\108\101\100"C.ChatWindow.CoreGuiEnabled=F local d=F.Event c="\067\111\114\101\071\117\105\069\110\097\098\108\101\100"t=d d.connect(t,function(...)e[c]:fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101"C.SetCore.ChatMakeSystemMessage=F local W=F.Event c="\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101"t=W W.connect(t,function(...)e[c.."\069\118\101\110\116"]:fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"C.SetCore.ChatWindowPosition=F local n=F.Event c="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"t=n n.connect(t,function(...)e[c.."\069\118\101\110\116"]:fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"C.SetCore.ChatWindowSize=F local J=F.Event c="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"t=J J.connect(t,function(...)e[c.."\069\118\101\110\116"]:fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")F.Name="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"C.GetCore.ChatWindowPosition=F t="\067\104\097\116\087\105\110\100\111\119\080\111\115\105\116\105\111\110"function F.OnInvoke(...)return e["\102"..t](...)end F=Instance.new F=F("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")F.Name="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"C.GetCore.ChatWindowSize=F t="\067\104\097\116\087\105\110\100\111\119\083\105\122\101"function F.OnInvoke(...)return e["\102"..t](...)end F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"C.SetCore.ChatBarDisabled=F local f=F.Event c="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"t=f f.connect(t,function(...)e[c.."\069\118\101\110\116"]:fire(...)end)F=Instance.new F=F("\066\105\110\100\097\098\108\101\070\117\110\099\116\105\111\110")F.Name="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"C.GetCore.ChatBarDisabled=F t="\067\104\097\116\066\097\114\068\105\115\097\098\108\101\100"function F.OnInvoke(...)return e["\102"..t](...)end F=Instance.new F=F("\066\105\110\100\097\098\108\101\069\118\101\110\116")F.Name="\083\112\101\099\105\097\108\075\101\121\080\114\101\115\115\101\100"C.ChatWindow.SpecialKeyPressed=F local l=F.Event c="\083\112\101\099\105\097\108\075\101\121\080\114\101\115\115\101\100"t=l l.connect(t,function(...)e[c](e,...)end)F=SetCoreGuiChatConnections F(C)end)()
-- Decompiled with the Synapse X Luau decompiler.

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)()
