Text Typing Animation

Hello guys! I’m wondering how to make a loop that displays letter by letter at a set speed. Simple request. If anyone knows how, thanks. (I’m not too experienced, but thank you)

2 Likes

Hey buddy!
Just do this:

local Counter = 1
local String = "Some Text!"
local TextLabel = workspace.Part.SurfaceGui.TextLabel -- Remeber to choose an instance to store the text propertie and not the text propertie itself!
for number = 1,string.len(String) do
	TextLabel.Text = TextLabel.Text..String:sub(Counter,Counter)
	Counter += 1
	wait(0.1)
end
1 Like

string.sub(string, position, position) is probably what you are looking for

2 Likes

If you’re gonna be doing what the others have suggested, make sure you don’t do this naively with RichText. If its typing out rich text itll show the “<b>” for example, without making the text bold until it’s done the end </b>.

Personnaly, i use TextLabel.Text, i never used RichText

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