Oh god no one taught me any of this stuff… what exactly is a thread and why does it become a problem here?
How difficult is animating by welds? I may do it that way because the animation object has some bugs to be worked out.
I have no idea what that other guy is talking about but what I did to make smooth transitions was check each frame if another animation has come up, if it has then cancel the current one.
Hmm out of curiosity, do you weld your gun model to the head or to the right arm?
Assuming you welded it to the head so it’d be easy to do aiming animations, what do you do then, when you have to animate the reloading animations? How would you coordinate the position of the gun with the movement of the right arm? Considering you have to do them separately but make them appear to be together?
[quote] Hmm out of curiosity, do you weld your gun model to the head or to the right arm?
Assuming you welded it to the head so it’d be easy to do aiming animations, what do you do then, when you have to animate the reloading animations? How would you coordinate the position of the gun with the movement of the right arm? Considering you have to do them separately but make them appear to be together? [/quote]
Idk what he does, so gonna tell what I do.
I weld gun to head and have a script that CFrames arms so they are holding on shoulder and part. That way they dynamically hold gun, and for reload animation, you’d move the second handle part, weld copy of new magazine to it.
Also, I have 2 viewmodels for arms, because 3. person arms doesn’t look as good as in first person.
Let me post something that will be infinity useful to you:
_G.animate(80, _G.rightweld, _G.rightweld.C1, CFrame.new(-1.25,0.5,-1.25)*CFrame.Angles(0.3,0,0.4), 0.3,
_G.leftweld, _G.leftweld.C1, CFrame.new(0.4,1,-1.25)*CFrame.Angles(0.3,0,math.rad(-25)))
Ok lets break it down, the right(_G.rightweld) and left(_G.leftweld) arm are welded to the head, then the gun is welded to the right arm. Now to break down the steps of the animation:
_G.animate(zoom, welda, weldaStart, weldaTarget, time, weldb, weldbStart, weldbTarget)
Okay, lets get basic here:
-Zoom: What do you want the FOV to be? It smoothly animates it just like the welds
-WeldA: Whats the first weld?
-WeldAStart: Where does it start from (Normally I just put weld.a.C1)
-WeldATarget: Now, where do you want it?
-Time: How much time do you want this to take?
All the weldb stuff is the same as the welda stuff, Its just called “weldb” because its for the left arm.
Are your questions answered?