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

My animation is not working correctly, how do i fix it?

Asked by 4 years ago
Edited 4 years ago

So, I just created my first animation and it is for a shotgun. I want it to work and it does but when you test it and your character moves in anyway, it stops the animation. Also, on the right hand where the shotgun is, the animation doesn't effect that arm. I know it is possible to fix this and make it all work and if interrupted keeps going, I just don't know how. Help please?

if Module.ReloadAnimationID ~= nil then
    local ReloadAnim = Instance.new("Animation",Tool)
    ReloadAnim.Name = "ReloadAnim"
    ReloadAnim.AnimationId = "rbxassetid://"..Module.ReloadAnimationID
end

(HERE IS THE SCRIPT THAT TELLS THE OTHER SCRIPT WHAT ANIMATION TO PLAY)

ReloadAnimationID = 3454070674; --Set to "nil" if you don't want to animate

I think it may be possible to modify the script so if an animation happens besides the reloading animation, the reloading animation will not stop.

1 answer

Log in to vote
0
Answered by
174gb 290 Moderation Voter
4 years ago
Edited 4 years ago

Your animation is stopping when moving isn't a "error". You need set priority to your animation.

Go on animation editor > Load your animation >Edit > Set Priority > set "Action" > Upload your animation again

Ad

Answer this question