local tool = script.Parent.Parent
game.ReplicatedStorage.Eat.OnServerEvent:Connect(function()
local char = script.Parent.Parent.Parent
local plr = game.Players:GetPlayerFromCharacter(char)
local animation = char.Humanoid:LoadAnimation(script.Parent.EatAnimation)
animation:Play()
plr.leaderstats.Fat.Value = plr.leaderstats.Fat.Value + 1
wait(1)
end)
How would I fix this? The bug is that the animation will not play the error is.
ServerScriptService.EatScript:6: attempt to index nil with 'Humanoid' - Server - EatScript:6
