Animation Doesn't Play On NPC

Using MonnAnimator i created an animation but when i tried to load it and play it the NPC stands still.
My NPC is just the default R15 block avatar and every part inside it in unachored,i also load the animation using an animator inside of an AnimationController within the rig and the animation is mine

1 Like

Could you provide us with the code you’ve tried?

I don’t really have a script i just pasted this line of code in the command line
game.Workspace.Rig.AnimationController.Animator:LoadAnimation(game.Workspace.Rig.TestAnimation):Play() while running the game, and also the game is totally empty since it’s just a baseplate

Have you tried checking out the example from the Wiki?

local character = game.Workspace.Rig

-- Ensure that the character's humanoid contains an "Animator" object
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

-- Create a new "Animation" instance and assign an animation asset ID
local myAnimation = Instance.new("Animation")
myAnimation.AnimationId = "rbxassetid://" -- Replace this with your animation ID

-- Load the animation onto the animator
local myAnimationTrack = animator:LoadAnimation(kickAnimation)

-- Play the animation track
myAnimationTrack :Play()
1 Like

Nope this code is still not working,no errors in the output just the NPC standing still

Oh wait it’s working now i think it’s because i had two animators in the same rig.
Thank you

i don’t know who to mark as a solution

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