It's obvious you can do this by doing:
script.Parent.Parent.Dialog.TextLabel.Text="H" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="He" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="Hel" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="Hell" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="Hello" wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text="Hello."
But I just want a simple function I can put my text into so that it does what I want easily.
It's actually really simple, try this :)
local text = "Whatever text you want this to be" for i = 1, #text do script.Parent.Parent.Dialog.TextLabel.Text = string.sub(text, 1, i) wait(0.04) --This is the speed of the text end
Put the individual characters you want typed into the table called Words
local Words = {"H","e'","l","l","o","."} local function Type() for i,v in pairs(Words[i]) do wait(0.05) script.Parent.Parent.Dialog.TextLabel.Text=script.Parent.Parent.Dialog.TextLabel.Text..v end end Type()
Press view source to see the entirety of line 6, it's pretty long.
This is fairly easy. Read this for information. https://developer.roblox.com/en-us/articles/animating-text