I am trying to load an animation into a Rig, but it comes back with the error 'LoadAnimation requires an Animation object'.
The localscript this is in is located at game.StarterGUI.maingui.mainscript (i think this might be the problem??)
The rig is at game.Workspace.swat1 The animation is at game.Workspace.swat1.Humanoid.swot1 OR game.Workspace.swat1.AnimSaves.swot1
Any advice would be helpful, im a bit of a noob too so if it's something obvious, that's my defense.
wait(7) local animation = game.Workspace.swat1.Humanoid:LoadAnimation(game.Workspace.swat1.Humanoid.swot1) animation:Play() warn("Done")
(Edited): You cant load a animation, the Load event is from the Humanoid, Try This:
local anim = --//Put the animation localization here --//Function local human = --//Humanoid Localization local anim = human:LoadAnimation(anim)