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: Question

Previous Thread :: Next Thread 
Beta2 is not online. 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
angelinafm is not online. angelinafm
Joined: 10 Apr 2011
Total Posts: 134
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
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Aug 2012 07:33 PM
^I take full credit

† KMXD †
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Aug 2012 12:25 PM
^I take back full credit
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
20 Aug 2012 01:07 PM
Bar?
Report Abuse
Destroshun is not online. Destroshun
Joined: 12 Aug 2012
Total Posts: 764
20 Aug 2012 01:10 PM
I take full credit from my main.

† KMXD 2.0 †
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
20 Aug 2012 02:32 PM
Is that your new main?
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
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 is not online. NW3
Joined: 28 Mar 2011
Total Posts: 1216
20 Aug 2012 02:55 PM
@18 - ...Why?
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