Using an animation to move a player

I’m trying to have a custom levitation animation for non player characters which ends up with them on the ceiling. However, whenever I finish playing the animation, the NPC just goes back to the starting point. Is there a good way to have the player not reset to their starting point when the animation is finished?

1 Like

This is a bit of a hacky method, but it might work in the way you are intending. I would suggest pausing the animation at the moment before the animation stops.

This can be done by using something like this:

AnimationTrack:AdjustSpeed(0)
1 Like

Animations don’t actually move the character. As @ThousandDegreeKnife said; you need to pause the animation before it ends, and move the NPC to the desired position.

Note that it’ll probably just fall down, so you need to anchor the NPC.

1 Like

It’s best to animate the NPC in one spot and use another method concurrently to move them such as either manually CFraming the HumanoidRootPart or if you want to use physics then by using constraints.

How would I know when “before the animation stops” is?