The problem is that the third message doesn't play, and there is no output.
Any ideas?
Computerized typing script:
--//_ VARIABLES _\\--
message = "Welcome to Blocks. It is a thinking-based game." -- http://www.javascriptkit.com/script/script2/charcount.shtml
letteramount = 47
went = 0
message2 = "The objective is to bring the block all the way to the block charger."
letteramount2 = 69
went2 = 0
message3 = "Seem simple enough? Let's try a sample round."
letteramount3 = 45
went3 = 0
text = script.Parent
newmsgwait = 3
--//_ LOOP _\\--
wait(1)
while wait(0.050) do
if went < letteramount then
went = went + 1
text.Text = message:sub(1,went)
elseif went == letteramount then
wait(newmsgwait)
newmsgwait = 0
went2 = went2 + 1
text.Text = message2:sub(1,went2)
elseif went2 == letteramount2 then
newmsgwait3 = 3 -- Maybe I didn't think this through...
wait(newmsgwait3)
newmsgwait3 = 0
went3 = went3 + 1
text.Text = message3:sub(1,went3)
end
end
All help appreciated!
