local p="\066\097\115\101\070\114\097\109\101"local R="\066\097\115\101\077\101\115\115\097\103\101"local A="\085\112\100\097\116\101\084\101\120\116\070\117\110\099\116\105\111\110"local c="\071\101\116\072\101\105\103\104\116\070\117\110\099\116\105\111\110"local e="\070\097\100\101\073\110\070\117\110\099\116\105\111\110"local g="\070\097\100\101\079\117\116\070\117\110\099\116\105\111\110"local f="\085\112\100\097\116\101\065\110\105\109\070\117\110\099\116\105\111\110"local L=game:GetService("\084\101\120\116\083\101\114\118\105\099\101")local C=game:GetService("\080\108\097\121\101\114\115")local z=C.LocalPlayer while not z do C.ChildAdded:Wait()z=C.LocalPlayer end local I=script.Parent.Parent local Y=require(I:WaitForChild("\067\104\097\116\083\101\116\116\105\110\103\115"))local b=require(I:WaitForChild("\067\104\097\116\067\111\110\115\116\097\110\116\115"))local M,E=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\083\104\111\117\108\100\067\108\105\112\073\110\071\097\109\101\067\104\097\116")end)local H=M and E local l={}local S={}S.__index=S function S.GetStringTextBounds(e,p,R,A,c)c=c or Vector2.new(10000,10000)return L:GetTextSize(p,A,R,c)end

local KEY_BASE_FRAME = "BaseFrame"
local KEY_BASE_MESSAGE = "BaseMessage"
local KEY_UPDATE_TEXT_FUNC = "UpdateTextFunction"
local KEY_GET_HEIGHT = "GetHeightFunction"
local KEY_FADE_IN = "FadeInFunction"
local KEY_FADE_OUT = "FadeOutFunction"
local KEY_UPDATE_ANIMATION = "UpdateAnimFunction"

local TextService = game:GetService("TextService")

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
while not LocalPlayer do
	Players.ChildAdded:Wait()
	LocalPlayer = Players.LocalPlayer
end

local clientChatModules = script.Parent.Parent
local ChatSettings = require(clientChatModules:WaitForChild("ChatSettings"))
local ChatConstants = require(clientChatModules:WaitForChild("ChatConstants"))

local okShouldClipInGameChat, valueShouldClipInGameChat = pcall(function() return UserSettings():IsUserFeatureEnabled("UserShouldClipInGameChat") end)
local shouldClipInGameChat = okShouldClipInGameChat and valueShouldClipInGameChat

local module = {}
local methods = {}
methods.__index = methods

function methods:GetStringTextBounds(text, font, textSize, sizeBounds)
	sizeBounds = sizeBounds or Vector2.new(10000, 10000)
	return TextService:GetTextSize(text, textSize, font, sizeBounds)
end