Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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.

0
I might have just found out how to fix it... I will find out. nameofdoam -3 — 5y
0
Nope. nameofdoam -3 — 5y

Closed as Non-Descriptive by hiimgoodpack and BlackOrange3343

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
AizakkuZ 226 Moderation Voter
5 years ago
Edited 5 years ago
Ad
Log in to vote
0
Answered by 5 years ago

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