|
| 29 Sep 2013 05:50 PM |
So, I want my message to go one letter at a time. Instead of going:
m.Text = "M" wait(.1) m.Text = "MO" wait(.1) m.Text = "MOO" wait(.1) m.Text = "MOO!"
Is there an easier way?
Help! |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:52 PM |
Lets just make this harder! :D
YOUR NEWLY HARD SCRIPT:
function MOO() m.Text = "M" wait(.1) m.Text = "MO" wait(.1) m.Text = "MOO" wait(.1) m.Text = "MOO!" end
MOO() |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 06:27 PM |
local text = "MOO!" for i = 1, text:len() do m.Text = string.sub(text, 1, i) wait(.1) end
Sanctuary <3 ᶘ ᵒᴥᵒᶅ |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2013 09:30 PM |
you could just replace .1 with waittime and at the top write waittime = 0.1, idk if thatll help any
--crazycamkalani |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 29 Sep 2013 09:32 PM |
m = Instance.new("Message",workspace)
local text = "MOO!" for i = 1, #text do m.Text = string.sub(text, 1, i) wait(0.2) end |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 09:36 PM |
If it doesn't work, post the output.
Where is the message being created?
I've never used string:len(), always #string. Never even knew about it :P
local text="MOO!" for i=1,#text do m.Text=text:sub(1,i) wait(0.1) end
|
|
|
| Report Abuse |
|
|
| |
|