Specific access

You can always access the exact line, word or character you want by indexing like this:

frame["1"]

With some sorting enabled, you’ll be able to easily access and loop through specific lines and words.

Access a character (requires having no sorting)

local character = frame["1"] -- (Character-1)
-- For Roblox fonts, 'character' will be a TextLabel.
-- For custom fonts, 'character' will be an ImageLabel.

Access a word (requires word sorting)

local word = frame["1"] -- (Word-1) — Word sorting.
local word = frame["1"]["1"] -- (Line-1 -> Word-1) — Line+word sorting.

for characterNumber, character in word:GetChildren() do
	-- For Roblox fonts, 'character' will be a TextLabel.
	-- For custom fonts, 'character' will be an ImageLabel.
end

Access a line (requires line sorting)

Last updated