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

New custom idle animation doesn't work in NPC?

Asked by 6 years ago

¿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?

0
Are you using a custom script, or the Animate you get from a standard playerCharacter? User#21242 20 — 6y
0
Standard playercharacter mohebious -2 — 6y
0
Have you tried my fix? If you have and it works, mark this as answered. User#21242 20 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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.

Ad

Answer this question