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 Quest

Previous Thread :: Next Thread 
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
11 Jan 2014 01:01 AM
Hello scripters,

For the one who like tough questions (or this won't be as tough, depends how good you're), here I got a question for you.

while wait() do
CFrame.new(1,.5,1) -- originally supports the welding of an object.
wait()
CFrame.new(1,3,.4,1)
wait()
CFrame.new(1,1,.2,1)
wait()
CFrame.new(1,4,.6,1)
end

These are the lines of an animation. But here is the question: How can I shorter this, to ONE line. So like:

while wait() do
CFrame.new(1,.5,1) -- first time will be this, next time will be CFrame.new(1,3,.4,1) etc.

wait()
end
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
11 Jan 2014 01:27 AM
You could use a loop if there was a more definite pattern.
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
11 Jan 2014 01:33 AM
I don't really need a loop since I got a TweenWeld() function that makes animations smooth. Thanks anyway.
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