I need some help understanding this

They use the content argument because it is the text they should animate, not sure why string.len was used when # can be used

string.sub basically gets a part of a string

local text = "This is text"

local textSub = string.sub(text, 1, 6) --Gets the first 6 letters

print(textSub) --Prints This i

It’s basically just used in that case for a typewriter effect and for getting specific characters to check if they’re equal to certain characters for the waiting part