Help w/ textlabel tables

What video? O_o

local messages = {
	"hehe",
	"lol",
	"badboy"
}


local textlabel = script.Parent

local function writetext(object,length)
	for i,v in pairs(messages) do
		for i = 1, #v do
			object.Text = string.sub(v,1,i)
			wait(length)
		end
	end
end


writetext(textlabel,0.5)
1 Like

this video, right here. but i think he’s already made it work

This should help her for 100% I’m sure

Oh my, i’ll check that out o_O thank u !!!

What is ‘object’ ?

path of the gui label/button im pretty sure

is my script working well? if its not tell me

Question, do i need to insert anything into object, length? or nah


This is after I add an extra line … ???

you forgot to add “,” after every line you add

Late reply, my apology.
Text doesn’t even begin before I get a debug error on script -

object.Text = string.sub(v,1,i)

it questions this.

No error, just the scripting debug questions it.

Text does not even start writing.

Nvm, it works, tysm!!!

No, not erally. On eproblem: he does not have any pauses between his lines.

add

wait()

then?
It’s really the easiest part of scripting. Just look for a part that mentions “messages” and strings, then add the wait() bit.

I tried that actually, that makes him say one letter per the wait(), which was the initial problem.

Wait(). Just wait(). Do not add any numbers. Just add wait(). that’s 0.02 seconds. if you still somehow need it even shorter then use task.wait()

image
Where in here do you want me to add wait?