I was making a script that will display a sentence letter by letter but then I figured that there could be something easier to do this. Is there any easier or simpler way?
script.Parent.Parent.Story.Text="O" wait(0.15) script.Parent.Parent.Story.Text="On" wait(0.15) script.Parent.Parent.Story.Text="One" wait(0.15) script.Parent.Parent.Story.Text="One n" wait(0.15) script.Parent.Parent.Story.Text="One ni" wait(0.15) script.Parent.Parent.Story.Text="One nig" wait(0.15) script.Parent.Parent.Story.Text="One nigh" wait(0.15) script.Parent.Parent.Story.Text="One night" wait(0.15) end)
local string = "One night" for i=1, string:len() do script.Parent.Parent.Story.Text = string:sub(1, i) wait(0.15) end
string:len() finds the length of the string. The script loops until it has spelled out the entire string.
local Text="One night" for i=1,#Text do script.Parent.Parent.Story.Text=Text:sub(1,i) wait(.15) end