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?

1 comment
In lua not equals is ~=, not -=