Getting error "LoadAnimation requires an Animation object"

Hello there, I’m Pixeluted I wanted play animation But I got error

Script
script.Parent.EatAnimation.OnServerEvent:Connect(function(player)
	local Loaded = game.Workspace[player.Name].Humanoid:LoadAnimation(script.Parent.EatAnimation)
	Loaded:Play()
end)
Error

16:24:19.894 - LoadAnimation requires an Animation object

16:24:19.895 - Stack Begin

16:24:19.895 - Script ‘Workspace.Cookie.CookieServer’, Line 3

16:24:19.896 - Stack End

Thank for read

There are a lot of duplicate articles/topics on this subject.

If that still doesn’t help you, there is this article on your topic.

If this still does not help, can you show us how you’re doing this? Screen shots of what type of script and how you’re getting the player in this event?

Thanks!

2 Likes

From what I can see both your animation and remote event are called EatAnimation?
You might wanna change that.

2 Likes

I know I am a bit late but @Pixeluted can you show what’s inside the thing?

Yes, That’s what I was gonna say

I am also having the same issue, has anyone fixed this?