I don't quite understand what kind of lag you are referring to.
If it is lag by the computer running the game, or if you meant that the animation runs with few frames, which would be the case that another guy said that the animation is truncated.
Let's say if it is because the animations have few frames (truncated), the solution would be that I add more frames
, but whenever I add more frames in the animations the game will be heavier to run on weaker machines.
If the animations are lagged because of the computer's processing, this varies from computer to computer and there is probably not much I can do about it.
For example, my computer runs smoothly without lags, now on my laptop that is weaker, it happens to lag in the animations because of the processor of the laptop.