I’m trying to make an npc play an animation when it moved to finished. But for some reason the animation won’t play?
here’s an image of my code
I’ve searched multiple times for answers and none really worked. Anyone got a solution? Thanks anyways!
1 Like
gettwo5
(Sarah)
#2
Try to instead add this for playing the animation instead. (In Script btw, not local script, and just in the npc, not humanoid)
Also make sure to add an Animation into the script
local animation = script:WaitForChild(‘AnimationID’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local dance = humanoid:LoadAnimation(animation)
dance:play()
dance.Looped = true
Also just make dance.Looped = false, if you don’t want the animation to loop
Let me know if this works!
system
(system)
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.