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

How would I get my player's current playing animation to play on an NPC?

Asked by 4 years ago

I'm referencing "shadow" as the npc, and it has an animationcontroller in it. Here's my code.

        local animcontrol = shadow:WaitForChild("AnimationController")
        local track = humanoid:GetPlayingAnimationTracks()
        local shadowanim = animcontrol:LoadAnimation(track)

Answer this question