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?
Do you own the animation, or is the animation free to take. If not then it wont work