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

GuiType help please?

For example if I had the word "Pizza" it would type it out 1 by 1 on the screen like you would be doing it. Also it is in StarterGui->ScreenGui->Frame->TextLabel->Script The reason why I mess up is because I don't understand how to put string.len() and string.sub() together to make the text type 1 by 1.

1 comment

0

Your code attempts?

1 answer

To do this, we need to have the aid of a numerical for loop, and the string.sub method. We'll use the for loop to sub the text, and display it.

local text = 'Pizza'
local gui --Define the gui

for i = 1,text:len() do --Get the length of the text with string.len method
	gui.Text = text:sub(1,i)
	wait(.1)
end

1 comment

0

#text also works to get the length, which I find much cuter.

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