I am having trouble on why it says Character is a nil value, this is the error: 19:19:21.294 - Players.Microsoft_Net.Backpack.Tool.LocalScript:3: attempt to index local 'Character' (a nil value)
Here is the code :
local Tool = script.Parent
local Player = game.Players.LocalPlayer
local Humanoid = Player.Character:FindFirstChild("Humanoid")
local Animation = Humanoid:LoadAnimation(Tool.Animation)
Tool.Equipped:Connect(function()
Animation:Play()
end)
Help?

5 comments
Now it says humanoid is a nil value?
You should wait for the humanoid as well. I thought that might happen. If something you expect to be there is nil, that means you should wait for it (in most cases like this). I'll edit the script.
Thank you, I learned something today definitely, but would it be, local Humanoid = Character:WaitForChild("Humanoid"):Wait() because that didn't really work.
I'm fairly certain that's not what you want.
Definitely not. Wait() is a method that can only be used on events. WaitForChild() already has an active yield and it isn't an event.