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

How could I make a Typing Gui?

So basically I want a typing Gui, by this I mean something like this:

script.Parent.Text = "H"
wait(0.1)
script.Parent.Text = "He"
wait(0.1)

I know it has to do something with for, but I am not sure how. Help please?

1 comment

0

It would be great if there was a type of :Tween for this.

2 answers

✓ Accepted answer
local msg = "Message"

for i = 1, msg:len() do
script.Parent.Text = msg:sub(1, i)
wait(0.1)

function addWord(GUI, word, betweenTime)
    for v in string.gmatch(word, ".") do --For every letter in the word
        GUI.Text = GUI.Text..v --Add the letter to the GUI's text.
        wait(betweenTime)
    end
end

addWord(script.Parent, "Hello, " 0.1)
addWord(script.Parent, "World!", 0.05)

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