Hello. On my typewriter UI I tried to create a pause between certain texts using wait() but all it did was set the speed of the text. I have tried other methods but It breaks the script.
There are no errors on the output.
Script Below.
local TextLabel = script.Parent
local Text
function TypeWrite(word, Duration)
Text = word
for i = 1, #Text do
TextLabel.Text = string.sub(Text, 1, i)
TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
wait(Duration)
end
end
TypeWriter("Test", 1.5, "Pause")
The text works perfectly until the wait()
Help would be greatly appreciated.