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

Animation not loading or trusted?

Asked by 8 years ago

So i have a module script with the following code in workspace.

function animatePlayer(animation, plr)
    if plr:IsA("Player") then
        local anim = Instance.new("Animation")
        anim.AnimationId = animation

        local animTrack = plr.Character.Humanoid:LoadAnimation(anim)
        animTrack:Play()
        print 'Shoulda Casted'
    end
end

return animatePlayer

and in a local script inside the player i have this line of code

local animateModule = require(game.Workspace.Animations.Handler)        
animateModule(AbScript.Anim.Value, plr) -- Sets Animation

It says the animation couldnt load. So i made a new animation in hopes it will fix, but now it says

"Asset not trusted" "Could not load animation"

Is it not possible to run animations like this?

0
Use your own animations, "My Crappy Solution". User#11440 120 — 8y

1 answer

Log in to vote
0
Answered by
Gxpar 0
8 years ago

Do you own the animation, or is the animation free to take. If not then it wont work

Ad

Answer this question