Beta2
|
  |
| Joined: 11 Apr 2008 |
| Total Posts: 1038 |
|
|
| 19 Aug 2012 07:01 PM |
Is there a way to take a sentence like this:
local sent = "This is an example sentence!"
And have it appear letter by letter without doing this:
thing.Name = "T" wait(0.1) thing.Name = "Th" wait(0.1) thing.Name = "Thi" wait(0.1) thing.Name = "This"
|
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:06 PM |
local sent = "This is an example sentence." for i = 1, string.len(sent) do print(sent:sub(1, i)) wait(.1) end
That should do the trick. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:33 PM |
local sent = "This is an example sentence!"
for i=1, #sent do thing.Name = sent:sub(1,i) wait() end |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:33 PM |
^I take full credit
† KMXD † |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 20 Aug 2012 01:10 PM |
I take full credit from my main.
† KMXD 2.0 † |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Aug 2012 02:38 PM |
space = " " maxletters = 10 string = "Hi, this is a test message!" times = 0
for i = 1, maxletters do string = string..space end
for i = maxletters, string:len() print(msg:sub(i + times,i + maxletters) wait(0.1) times = times + 1 end
~ Moo ~ |
|
|
| Report Abuse |
|
|
NW3
|
  |
| Joined: 28 Mar 2011 |
| Total Posts: 1216 |
|
| |
|