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: What is happening with welds?

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 11:01 AM
I am animating with welds and when I change the X axis, it does JUST the same as the Z axis but the opposite, which shouldn't happen because you can just use minus. I can't animate my arm out to the side because there is no such existing axis.

...
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
15 Nov 2014 11:37 AM
Can we see a snip of the code that is doing this?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 11:40 AM
Well, I kind of want another method since this seems like a bad one, how does people make good animations without the animation editor? If you say welds, then don't assume I know what to do because I've tried.

--Start Animation
char.Torso["Right Shoulder"].Part1 = nil
aw = Instance.new("ManualWeld", char)
aw.Part0 = char.Torso
aw.Part1 = char["Right Arm"]
aw.C0 = char.Torso["Right Shoulder"].C0
aw.C1 = CFrame.new(-.5,.5,0) * CFrame.Angles(math.rad(10),math.rad(90),0) * CFrame.Angles(0,0,0)


---Ending animation
aw:Destroy()
char.Torso["Right Shoulder"].Part1 = char["Right Arm"]
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 11:41 AM
How does people move stuff so smoothly? Only wway to do it with welds I see is loop a number and put the loop in the angles, how can I animate..
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 12:59 PM
I still need another method but the animation editor since this animation isn't so big and has to much detail for me to use in the animation editor.
So how do you animate without the animation editor, SH?
Report Abuse
Statuezz is not online. Statuezz
Joined: 26 Sep 2013
Total Posts: 131
15 Nov 2014 01:01 PM
Custom tweening functions; I suggest looking into some free models before attempting your own.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 01:04 PM
I'm gonna need more information than that, that's one of the type of comments that doesen't get me anywhere. Bump.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 01:26 PM
bump
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 01:49 PM
bumperino
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
15 Nov 2014 02:17 PM
Some users created custom tweening functions that use math to update the CFrame from one position to another. They are like the :TweenSize() and :TweenPosition() and :TweenSizeAndPosition() methods for Gui's, but they are user created, and not built-in to ROBLOX.

However, as a simpler approach, to make the following animation smoother:

for i = 1,10 do
motor.C0 = motor.C0 *CFrame.Angles(0,.1,0)
wait()
end

You can make it run faster by subtracting from the second number in the for loop and adding to the *CFrame.Angles part, like so:

for i = 1,5 do
motor.C0 = motor.C0 *CFrame.Angles(0,.2,0)
wait()
end

This will be twice as fast, and produce the same result, since 5*.2 == 10*.1.

Report Abuse
MattiasKarlsen is not online. MattiasKarlsen
Joined: 13 Jan 2010
Total Posts: 639
15 Nov 2014 02:19 PM
Welds can be weird like that sometimes.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 05:04 PM
@Itha, I can do just that, but the problem to why I can't continue:

I can only animate one axis smoothly because it requires to make two loops when I want to animate two axises in different rotations.

And when I run a loop inside a loop which I have to when creating two of them, it messes up completely.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
15 Nov 2014 05:08 PM
I have a tweening library with V3Rot and V3Pos, but I haven't been bothered to add CFrame support :/
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
15 Nov 2014 05:13 PM
Ah damnit :/
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