How to stop automatic size scale depending on distance

I don’t want the textlabel to resize itself when getting close or far. I want how it only resizes itself if the text length changes.

Got it to work:

local RunService = game:GetService("RunService")

local part = script.Parent
local BillboardGui = part:WaitForChild("BillboardGui")
local TextLabel = BillboardGui:WaitForChild("TextLabel")

local defaultSize = TextLabel.Size

local function UpdateSize()
	local text = TextLabel.Text
	local textCharacters = string.len(text)
	
	TextLabel.Size = UDim2.fromScale(textCharacters * defaultSize.X.Scale, 1)
end

TextLabel:GetPropertyChangedSignal("Text"):Connect(UpdateSize)
UpdateSize()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.