Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's happening with this animation?

Asked by
Rinpix 639 Moderation Voter
4 years ago
Edited 4 years ago

I'm extremely inexperienced with animations. I'm trying to use an animation to make my character hold a pistol correctly.

Whenever I equip the pistol, the animation starts playing. Whenever I unequip the pistol, the animation stops playing.

It works just fine on the client, but when I view my character from another client or from the server, it doesn't seem to play properly:

https://gyazo.com/6ebb2e5068509f7cb9e05ee2c390ad02

The animation I'm using is 5 seconds long, all of the keyframes are the exact same, looping was disabled in the animation editor, and the priority of the animation was set to action. The AnimationTrack instance is created by the client whose character contains the pistol. I have looping disabled because if it's enabled, the animation plays endlessly, even if you unequip the pistol and call :Stop() on the AnimationTrack.

Does this kind of behavior viewed from another client or on the server result from the client/server not recognizing the priority of the animation or something?

Why is this happening? How can I prevent this from occurring?

1 answer

Log in to vote
0
Answered by 4 years ago

Set the Animation Priority to "movement". The problem is that the character's default animations are overriding your shooting animation. Go to your animation editor, click on the top left button, click "SetAnimationPriority" and click "movement". There will be 4 priorities (Core, Idle, Movement and Action). Idle will override core, Movement will override Idle and Action will override Movement. The roblox character's default animation has "Idle" for priority.

0
My issue is that the animation appears buggy from the perspective of other clients and the server. I don't think lowering the animation's priority from action to movement is going to do anything. Rinpix 639 — 4y
0
oh wait you set it already to action? oh TheRealPotatoChips 793 — 4y
0
Maybe try to remake the animation on another dummy... TheRealPotatoChips 793 — 4y
Ad

Answer this question