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:
I’d really appreciate the help
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