|
| 02 Oct 2014 11:40 AM |
Hey There!
I want to do something like this:
script.Parent.Text = "H" wait(0.1) script.Parent.Text = "Hi"
However, when i do this with long sentences it takes ages to script this. Is there a faster way of doing this?
Thanks! Planesoldier |
|
|
| Report Abuse |
|
|
Vulnerite
|
  |
| Joined: 05 Nov 2007 |
| Total Posts: 11492 |
|
|
| 02 Oct 2014 11:45 AM |
string.sub
vulnerite AKA keith | tons of deleted accounts | i do stuff |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2014 11:45 AM |
for i = 1,10 do string.sub("Hello World", i) end
something like this |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 02 Oct 2014 11:48 AM |
Hey again plane.
Txt = "Some text" Label = script.Parent for i = 1, Txt:len do Label.Text = Label.Text..Txt:sub(i,i) wait(0.1) end |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 02 Oct 2014 12:14 PM |
Txt = "Some text" Label = script.Parent for i = 1, Txt:len() do Label.Text = Label.Text..Txt:sub(i,i) wait(0.1) end
forgot "()" after :len
~KingScrub |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Oct 2014 01:02 PM |
I'm late but this is the way I would do it
function type(o, p, t) for n = 1, #t do o[p] = t:sub(1, n) wait(0.03) end end
local h = Instance.new("Hint", workspace) type(h, "Text", "Hello world!")
local m = Instance.new("Model", workspace) type(m, "Name", "This is a model.") |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 02 Oct 2014 07:12 PM |
Msg=function(_,__,___) -- string `string`, time `time`, removeTime `time` local dt=.1 time=((__)or(.01)>dt)and(dt)or(__)or dt; ___=(___)or(4); local m=Instance.new('Message',workspace); for i=1,_:len''do m.Text=_:sub(1,i)..(function() local r=''; for x=i+1,_:len''do r=r..tostring(math.random(0,9)); end; return(r); end)(); wait(__); end; game.Debris:addItem(h,___); return(h); end; --//example:
Msg('SKJSFKJSHDFKSJFHSKJFHSDKFHSDKFJSBCJSDHFUEFHSDKF',1/30,4); |
|
|
| Report Abuse |
|
|
newslate
|
  |
| Joined: 10 Jun 2014 |
| Total Posts: 217 |
|
| |
|
|
| 03 Oct 2014 12:34 AM |
Thanks people!
I was sick of doing that for 30 minutes long. Thanks :D! |
|
|
| Report Abuse |
|
|