Animations playing very choppily

Hello there, I’m having a bit of an issue with animations in my game. Whenever I’m animating something, the playback seems really smooth, however playing it in game it seems like animations are holding on keyframes for fractions of a second.

For example, this was happening a while ago until I exported thru Moon Animator:
Image from Gyazo
VS
Image from Gyazo
(If you need higher quality, I can provide it, but it should be clear how laggy it is.
The problem seems to now happen on a new placeholder animation I was working on:
Image from Gyazo
VS
Image from Gyazo

I am running these animations through a LocalScript, loaded on the Humanoid.Animator.
If anyone could explain why this might be happening, I’d really appreciate it.

2 Likes

AnimationTrack:Play() has optional parameters, being fadeTime, weight, and speed. By default, fadeTime is set to about 0.1. fadeTime is takes (in seconds) to ease into the animation’s pose. Try setting it to 0.

1 Like

I tried that out, but it still seems like the animation lingers on each keyframe instead of instantly transitioning.

Hi there!

Question, are you sure the animation track is playing only once?
This problem could occur if you’re playing the animation track inside a loop or something alike.

Only once. There is a debounce. I’m sorry for the late response, it seems like the forum didn’t give me notifications for that reply. I’ve even loaded anims like this onto a blank dummy and a simple:Play() and it hasn’t worked.

Does it look different on the server and the client?

Nope, it’s run in a client script. Weirdly, this was happening with the halberd until I imported it to Moon and re-exported it. I did the same for the sword but I’d still like to see if there’s an explanation behind it.

What i do is that I copy the first frame and paste it at the end

1 Like

That’s not the issue. The issue isn’t within the anim to anim transitions, it’s the animations themselves.

1 Like

Can you please screenshot the whole animation track? That’s needed to check what framerate you have. To change the framerate, go to the top right corner of the animation editor, and set frames to custom. Then, change the framerate and make it higher until it fits your liking!

I’m fairly sure the first GIF has the whole animation track? In the editor it looks fine.
The second GIF shows how it’s choppy when I use playback in-game.