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: Animation - Help!

Previous Thread :: Next Thread 
crazybillybobjoe2468 is not online. crazybillybobjoe2468
Joined: 07 Nov 2010
Total Posts: 16
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 is not online. 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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
crazybillybobjoe2468 is not online. crazybillybobjoe2468
Joined: 07 Nov 2010
Total Posts: 16
29 Sep 2013 08:28 PM
Didn't work.
Report Abuse
crazycamkalani is not online. crazycamkalani
Joined: 23 Nov 2010
Total Posts: 261
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 is not online. 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
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
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
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
29 Sep 2013 09:42 PM
e.e
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