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

Is there a way to 'tween' text in a textbox GUI?

I want to have text appear in a textbox letter by letter, as if it is being typed live. I have searched around the wiki and looked through more questions than I can count on scripting helpers and I cannot seem to find anything!

I'm not too sure if I'm searching the wrong things or if it is just not possible.

If it can be done, please help me out on how to do it!

1 answer

✓ Accepted answer

Ok the best way to do this would be to use a for loop and set the allign property to left or right so the code would loo something like this.

local finalText = 'string'

for i = 0, #finalText do
	textBox.Text = string.sub(finalText, 0, i)
	wait(.5)
end 

what we are doing here is looping through the string that will go in the textbox and every half second another letter is added

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