Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

New custom idle animation doesn't work in NPC?

¿Why when I put a new idle animation in an NPC, when the animation ends, continues with the old animation old roblox idle animation or is without animation?

3 comments

0

Are you using a custom script, or the Animate you get from a standard playerCharacter?

0

Standard playercharacter

0

Have you tried my fix? If you have and it works, mark this as answered.

1 answer

Heres a script you could possibly use:

local humanoid = script.Parent.Humanoid
local idle = humanoid:LoadAnimation(script.Idle)

idle:Play()

If you made the script a child of the NPC and added the animation as a child of the script, and called it "Idle" then that should work for you! Have fun scripting!

EDIT: Also, if you haven't already make sure to delete the Roblox "animate" script, along with animations.

This discussion is preserved as it was. New answers, comments, and votes are closed.