Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a TextLabel display a word one letter at a time?

I want to make a TextLabel display a word on letter at a time. NOT like the following!

game.StarterGui.ScreenGui.Textlabel.Text = "E"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EX"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EXA"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EXAM"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EXAMP"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EXAMPL"
wait(0.1)
game.StarterGui.ScreenGui.Textlabel.Text = "EXAMPLE"

2 answers

✓ Accepted answer

Use a loop:

local text = "EXAMPLE";
for i = 1,#text do
	textlabel.Text = text:sub(1,i);
	wait(0.1);
end

1 comment

0

Thanks

game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "E"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EX"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXA"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAM"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMP"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMPL"
wait(0.1)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMPLE"

3 comments

0

Dude... Did you even read the description?

0

Dude.. DOES IT REALLY MATTER?

0

Yes, considering I ASKED FOR IT. I USED EXAMPLE FOR A SHORT EXAMPLE. I DIDNT WANT TO SHOW AN EXAMPLE WITH THE REAL THING. THE REAL WORDS WERE: Thanks for joining my game! Please leave a like and favorite if you liked my game! WOULD YOU WANT TO TYPE THAT OUT?

This discussion is preserved as it was. New answers, comments, and votes are closed.