How do I get the currently playing animation from a humanoid?

how do i get the id of and animation thats currently playing
eg. when the player is using a dance emote how would I make a dummy in game to do the same animation as the player?

I don’t think you can get the Id of the animations as you have to have a AnimationId for the Animations, which you can basically get the animation from there, but you are able to get the current Animations with: Animator:GetPlayingAnimationTracks()

local Animations = Humanoid.Animator:GetPlayingAnimationTracks()
print(Animations)

However, you might be able to Locate the Animation and get its Id by the Key (or index) within the Array

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.