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")

4 comments
So.. like this?? local animation = game.Workspace.swatmain.Humanoid.swot:LoadAnimation(animation)
using local animation = game.Workspace.swatmain.Humanoid.swot gives 'LoadAnimation is not a valid member of KeyframeSequence'.
i edited my answer
no, its like this: game.Workspace.swatmain.Humanoid:LoadAnimation(animation), also if my answer answered u check my answer as a answer to close the thread plz.