Pixeluted
(Pixeluted)
February 29, 2020, 3:33pm
#1
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
Kensizo
(Kensizo)
February 29, 2020, 3:37pm
#2
There are a lot of duplicate articles/topics on this subject.
I keep getting this error whenever I attempt to call :LoadAnimation() on the humanoid. The localscript is located in the player’s StarterPack. Here’s the code:
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local root = char:WaitForChild("HumanoidRootPart")
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/Asset?ID=180436334
local animTrack = hum:LoadAnimation(anim)
As you ca…
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
rokec123
(rok)
February 29, 2020, 3:37pm
#3
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
IuvIogan
(logan)
April 2, 2021, 1:07am
#6
I am also having the same issue, has anyone fixed this?