local A=PlayersService.LocalPlayer while A==nil do PlayersService.ChildAdded:wait()A=PlayersService.LocalPlayer end local U=A:WaitForChild("\080\108\097\121\101\114\071\117\105")local l,d=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\083\104\111\117\108\100\076\111\099\097\108\105\122\101\071\097\109\101\067\104\097\116\066\117\098\098\108\101")end)local Y=l and d local K do local A,U=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\070\105\120\066\117\098\098\108\101\067\104\097\116\084\101\120\116")end)K=A and U end local h do local A,U=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\082\111\097\099\116\066\117\098\098\108\101\067\104\097\116\066\101\116\097")end)h=A and U end local H do local A,U=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\080\114\101\118\101\110\116\079\108\100\066\117\098\098\108\101\067\104\097\116\079\118\101\114\108\097\112")end)H=A and U end local function V(A)return utf8.len(utf8.nfcnormalize(A))end


local LocalPlayer = PlayersService.LocalPlayer
while LocalPlayer == nil do
	PlayersService.ChildAdded:wait()
	LocalPlayer = PlayersService.LocalPlayer
end

local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local success, UserShouldLocalizeGameChatBubble = pcall(function()
	return UserSettings():IsUserFeatureEnabled("UserShouldLocalizeGameChatBubble")
end)
local UserShouldLocalizeGameChatBubble = success and UserShouldLocalizeGameChatBubble

local UserFixBubbleChatText do
	local success, value = pcall(function()
		return UserSettings():IsUserFeatureEnabled("UserFixBubbleChatText")
	end)
	UserFixBubbleChatText = success and value
end

local UserRoactBubbleChatBeta do
	local success, value = pcall(function()
		return UserSettings():IsUserFeatureEnabled("UserRoactBubbleChatBeta")
	end)
	UserRoactBubbleChatBeta = success and value
end

local UserPreventOldBubbleChatOverlap do
	local success, value = pcall(function()
		return UserSettings():IsUserFeatureEnabled("UserPreventOldBubbleChatOverlap")
	end)
	UserPreventOldBubbleChatOverlap = success and value
end

local function getMessageLength(message)
	return utf8.len(utf8.nfcnormalize(message))
end
