Hello, I have an error in my code that happens all the time when I animate it always does something like: attempt to index nil with Humanoid or attempt to index nil with Character. I'm not sure what to do anymore I used a script from not too long ago and the old script worked but the new one worked it's so confusing. I would like to say it does start in ServerStorage so that may be why. but I don't know. Anyway, This Is A LocalScript Inside of a Tool Inside of ServerStorage but it moves to the player backpack. so I don't know here is my script error is at line 1
local Anim = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.SlashAnim2)
script.Parent.Activated:Connect(function()
Anim:Play()
end)

3 comments
Thanks For Your Help Still Does Not Work.
Did you read the error he provided? That's not the issue. Plus, the LoadAnimation function takes an instance, not the animation id. This will only result in another error.
I Was Not Sure Im So Desperate For A anwser at this point