So I recently decided to change my game to R15 and I made a pretty good animation to go with one of the new NPCs but I can't seem to play any kind of animation. I've tried on multiple rigs, anchored and not anchored and to know avail. I'll include the script I've been using.
local char = script.Parent local hum = char:WaitForChild("Humanoid") local animation = hum:LoadAnimation(script.Animation) if char -= nil then animation:Play() end?
Also if I was to fix it, how would I loop a 3-4 second animation with that same script?
You can loop it by setting the loop of the animation to true.
local char = script.Parent local hum = char:WaitForChild("Humanoid") local animation = hum:LoadAnimation(script.Animation) animation.Looped = true if char -= nil then animation:Play() end?
i havent tested this, but it seems like everybody does this.