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

What type of Script should I use for a "Typewriter" Effect on a TextLabel?

I was looking at a ScriptingHelpers forum to help with a "Typewriter" Effect on a TextLabel, and I can't find out which type of Script I need to use, or if I am doing something wrong? Here is the simple but long script I am using (I am a beginning programmer): wait(3) script.Parent.Parent.Dialog.TextLabel.Text="T" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="Th" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This " wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This i" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is " wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is t" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is th" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the " wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the h" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the ho" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the hou" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the hous" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the house" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="This is the house?" wait(0.05)

I can't find out how to make it work.

2 comments

0

I might have just found out how to fix it... I will find out.

0

Nope.

2 answers

It's simple!

local Text = "The quick brown fox jumps over the lazy dog" -- Change this to the text you want
local TextLabel = script.Parent.Parent.Dialog.TextLabel

for i = 1, #Text do
	TextLabel.Text = string.sub(text, 1, i)
	wait(0.05) -- How long for each letter to come out
end

If it helped, remember to accept! :D

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