local D=game:GetService("\084\101\120\116\083\101\114\118\105\099\101")return function(E,s,d,V)local B,v=pcall(function()local B=Instance.new("\071\101\116\084\101\120\116\066\111\117\110\100\115\080\097\114\097\109\115")B.Text=E B.Font=s B.Size=d B.Width=math.huge local v=D:GetTextBoundsAsync(B)if V then v=Vector2.new(v.X,v.Y*V)end return v end)if B then return B,v else return B,Vector2.new()end end
local TextService = game:GetService("TextService")

return function(String, Font, Size, LineHeight)

	local GotTextSize, TextSize = pcall(function()

		local Params = Instance.new('GetTextBoundsParams')
		Params.Text = String
		Params.Font = Font
		Params.Size = Size
		Params.Width = math.huge

		local TextSize = TextService:GetTextBoundsAsync(Params)

		-- Account for LineHeight
		if LineHeight then
			TextSize = Vector2.new(TextSize.X, TextSize.Y * LineHeight)
		end

		return TextSize
	end)
	
	if GotTextSize then
		return GotTextSize, TextSize
	else
		return GotTextSize, Vector2.new()
	end
end
