|
| 19 May 2014 01:00 PM |
content = script.Parent.Base.Content.Content
---------------------------------------------- content.Text = "W" wait(0.2) content.Text = "We" wait(0.2) content.Text = "Wel" wait(0.2) content.Text = "Welc" wait(0.2) content.Text = "Welco" wait(0.2) content.Text = "Welcom" wait(0.2) content.Text = "Welcome" |
|
|
| Report Abuse |
|
|
ajmhm1111
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 19 May 2014 01:06 PM |
Hello,
I don't know if it is efficient but it is shorter
content = script.Parent.Base.Content.Content
local word = "Welcome"
for i=1,word:len() do --for word:len() could of used #word content.Text = content.Text..word:sub(i,i) wait(0.2) end
I think that should work?
--ajmhm1111 |
|
|
| Report Abuse |
|
|
|
| 19 May 2014 01:09 PM |
Tat would add-on on the text thats there and doesnt reset the other text, and i was thinking of a new effect on it that if it appears it slike goes up like now put then from 1 transparency to 0, but ur idea was good, if i can't get an easier way then this (nothing wrong, only didlearn this stuff yet) then i would use this way with another tinhg addedup.
|
|
|
| Report Abuse |
|
|
ajmhm1111
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 19 May 2014 01:38 PM |
My way only replicated the script you put on your post just in a few shorter line.
--ajmhm1111 |
|
|
| Report Abuse |
|
|
|
| 19 May 2014 02:09 PM |
m=script.Parent.Base.Content.Content msg={"string1","string2","string3"}--have as many you need. :) while wait() do for a=1,#msg do for b=1,#msg[a] do wait(.02) m.Text=string.sub(msg[a],1,b) end wait(2) for c=1,#msg[a] do wait() m.Text=string.sub(msg[a],c) end end end
~masterCameron101, advanced Lua programmer, certified in Photoshop. Have I helped you? Don8~ |
|
|
| Report Abuse |
|
|
|
| 19 May 2014 02:10 PM |
Btw, this got a script that I had that was 30 lines into a little over 10 lines so ty for getting me to do that. :)
~masterCameron101, advanced Lua programmer, certified in Photoshop. Have I helped you? Don8~ |
|
|
| Report Abuse |
|
|
Azeroth17
|
  |
| Joined: 13 May 2014 |
| Total Posts: 86 |
|
|
| 19 May 2014 02:17 PM |
content.Text = content.Text..word:sub(i,i)
I'd probably change that line, just in case the GUI has previous text. |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 19 May 2014 02:21 PM |
content = script.Parent.Base.Content.Content word = "Welcome"
for i=1,string.len(word) do content.Text=string.sub(word,1,i) wait(.2) end |
|
|
| Report Abuse |
|
|
|
| 21 May 2014 06:11 AM |
m=script.Parent.Base.Content.Content msg={"string1","string2","string3"}--have as many you need. :) while wait() do for a=1,#msg do for b=1,#msg[a] do wait(.02) m.Text=string.sub(msg[a],1,b) end wait(2) for c=1,#msg[a] do wait() m.Text=string.sub(msg[a],c) end end end
Cameron, how to chagnge it so if the text also does as the begin oso like it also type sout |
|
|
| Report Abuse |
|
|
|
| 21 May 2014 06:46 AM |
local content = script.Parent.Base.Content.Content local word = "Welcome"
for i = 1, string.len(word) then content.Text = word:sub(1,i) wait(0.2) end |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 21 May 2014 09:00 AM |
funtion Say(Input) for x = 1, #Input do content.Text = Input:sub(1, x) wait(math.random(3, 5) / 100) --Random time from 0.03 to 0.05, change this till you get the typing feel you want end end
Say("Hello world!") |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
|
| 22 May 2014 10:17 AM |
| I want to use multiple words to, but the thing is, i dont wanna use multiple scripts what i already thought of, but any effiecenter way for making some words type in and out. |
|
|
| Report Abuse |
|
|