How to slow down text typing animation

Hello everyone. So I’m not a scripter at all, and I heavily rely on tutorials to do some basic scripting.

In this case I have been following along a tutorial to make text inside a ScreenGUI type out with a sound in sort of a typewriter animation. It works fine, but it plays far too fast. I’m not too sure how to slow the typing down.

There is a LocalScript is under the TextLabel as shown:
wadwawa

I’d really appreciate the help :smiley:

Here is what is written inside the LocalScript:
(The sound is the typing sound)

local text = "TEXT HERE"


for i = 1, #text do
	script.Parent.Text = string.sub(text,1,i)
	local cor = coroutine.wrap(function()
		local Sound = Instance.new("Sound")
		Sound.Volume = .05
		Sound.SoundId = "rbxassetid://177266782"
		Sound.Parent = script.Parent.Parent
		Sound:play()
		Sound.Ended:Wait()		
		Sound:Destroy()
		
	end)
	cor()
	wait()
 end
local time_between_characters = .1 --//Change this!

for i = 1, #text do
	script.Parent.Text = string.sub(text,1,i)
	local cor = coroutine.wrap(function()
		local Sound = Instance.new("Sound")
		Sound.Volume = .05
		Sound.SoundId = "rbxassetid://177266782"
		Sound.Parent = script.Parent.Parent
		Sound:play()
		Sound.Ended:Wait()		
		Sound:Destroy()
		
	end)
	cor()
	wait(time_between_characters)
 end
3 Likes

couldnt you just add like a .1 wait in either of the 2 waits you have written down?

EDIT: Like C_Sharper said

2 Likes

thanks it worked for me too :slight_smile:

And i thought this guy posted again :sob: