generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Any effecienter way?

Previous Thread :: Next Thread 
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
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 is not online. 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
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
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 is not online. 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
masterCameron101 is not online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
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
masterCameron101 is not online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
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 is not online. 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 is not online. 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
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
21 May 2014 07:05 AM
copied me^
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 07:08 AM
^
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
21 May 2014 07:10 AM
^
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 07:12 AM
^
^
^
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
21 May 2014 07:46 AM
^

^

^

^
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 07:48 AM
^


^


^


^


^
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
21 May 2014 07:51 AM
> > >
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 07:57 AM
vvvvvvvv
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
21 May 2014 07:57 AM
^^^^^^^^
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 07:59 AM
^ teamwork
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
21 May 2014 08:03 AM
\/
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
21 May 2014 08:05 AM
V
Report Abuse
128GB is not online. 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 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
21 May 2014 09:05 AM
how dare you boy ^

vvvv
Report Abuse
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image