How long did the text get delayed when you first added wait().
I never added wait(). i added wait (time here), which made the letters display longer
You arent supposed to add a number (I donāt know what the hell you thought it was gonna do with time here), Nor do you add a space. Just put the wait where it was and exactly like this
wait()
I donāt know how a PC is supposed to understand āTime Hereā. Itās also not a person, so adding spaces will not work. (you need to keep the brackets)
as in Time Here i meant the number i put like wait(2)
Also, putting wait() where I p ut it before does absolutely nothing. No pauses inbetween his phrases.
That doesnt matter.
DO
NOT
ADD
A
NUMBER!!!
So how did it make a delay if it also didnāt make a delay
Because I LITERALLY TOLD YOU THAT the WAIT i added had a TIME in it, like wait(2) WHICH delayed the letters
I removed that now, but I want a script that can make pauses inbetween sentences
So donāt use the 2. Use nothing. Do not add anything donāt add zero, just donāt add anything but wait(). Just wait() Do not alter it in any way
I did. It did absolutely nothing. Still no pause inbetween the sentences. Where do you want me to put the wait() anyway?
Paste in the script and I will try it myself
script.Parent.BillboardGui.MainFrame.Visible = true
local messages = {
"hey",
"hil.",
"hello:",
"wsp.",
"brah.",
"this is just a placeholder.",
"water",
"test"
}
local textlabel = script.Parent.BillboardGui.MainFrame.Dialogue1
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.06)
'dyou try this?
What do you mean?
It is supposed to be that. He is supposed to say his sentence out at quick speed, but create a pause between the sentences.
As in, for example he says āheyā quickly, but thereās a 1 second pause before he says āhil.ā
script.Parent.BillboardGui.MainFrame.Visible = true
local messages = {
"hey",
"hil.",
"hello:",
"wsp.",
"brah.",
"this is just a placeholder.",
"water",
"test"
}
local textlabel = script.Parent.BillboardGui.MainFrame.Dialogue1
local function writetext(object, length)
for i, v in ipairs(messages) do
for j = 1, #v do
object.Text = string.sub(v, 1, j)
end
wait(1) -- Add a 1-second wait after each message
end
end
writetext(textlabel, 0.06)