In my game, I need a npc to play an animation. When I use the run button the animation plays just fine, but when I use the play option, the animation doesn't play. The script I'm using to play the animation is
local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()
With an animation as its child with the proper id. Is this something with ROBLOX, the code, or something completely different?
UPDATE I believe this may be a bug in the script as I am fairly certain I saw the character playing the animation before stopping almost immediately after I spawned in. The animation is supposed to be looped.
