spawn(function()if LocalPlayer.UserId>0 then pcall(function()local k=StarterGui:GetCore("\071\101\116\066\108\111\099\107\101\100\085\115\101\114\073\100\115")if#k>0 then local t=DefaultChatSystemChatEvents:FindFirstChild("\083\101\116\066\108\111\099\107\101\100\085\115\101\114\073\100\115\082\101\113\117\101\115\116")if t then t:FireServer(k)end end end)end end)spawn(function()local k,t=pcall(function()return Chat:CanUserChatAsync(LocalPlayer.UserId)end)if k then canChat=RunService:IsStudio()or t end end)local k=EventFolder.GetInitDataRequest:InvokeServer()
-- Get a list of blocked users from the corescripts.
-- Spawned because this method can yeild.
spawn(function()
	-- Pcalled because this method is not released on all platforms yet.
	if LocalPlayer.UserId > 0 then
		pcall(function()
			local blockedUserIds = StarterGui:GetCore("GetBlockedUserIds")
			if #blockedUserIds > 0 then
				local setInitalBlockedUserIds = DefaultChatSystemChatEvents:FindFirstChild("SetBlockedUserIdsRequest")
				if setInitalBlockedUserIds then
					setInitalBlockedUserIds:FireServer(blockedUserIds)
				end
			end
		end)
	end
end)

spawn(function()
	local success, canLocalUserChat = pcall(function()
		return Chat:CanUserChatAsync(LocalPlayer.UserId)
	end)
	if success then
		canChat = RunService:IsStudio() or canLocalUserChat
	end
end)

local initData = EventFolder.GetInitDataRequest:InvokeServer()
