Before you run the animation, make sure Character.Parent isn’t nil.
while Character.Parent == nil do
Character.AncestryChanged:wait()
end
Which according to Getting error "LoadAnimation requires the Humanoid object to be a descendant of the game object" despite waiting for Character - #2 by TheGamer101 should fix the issue.
This is because the character exists before it is parented to workspace.