I used this script to play an animation:
local function equip() equipped = true --//Get humanoid local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") if humanoid then --//Load animations pcall(function() --//Hold animation holdTrack = humanoid:LoadAnimation(holdAnim) holdTrack:Play() end) end end
But I get this error: 10:12:27.271 - Animation failed to load in "Workspace.CaptainD_veloper.Assualt Rifle.Animations.Hold.AnimationId": Animation failed to load
My educated guess is that you do not own the animation. Make sure you own it or if it is a group game your group owns it. Don't use animations that are not yours.