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

2 comments
Make sure 'holdAnim' is correct and is the Animation object with the id. Could also be because you don't own the animation.
Oh thats probably why. :P