I have a damage script inside my tool it is a server script but every time I use it says
"Players.AM910SK.Backpack.Rasengan.Damage and Explosion:10: attempt to index nil with 'Humanoid'"
It happens at line 10 in my script
here is the script:
debounce = false
player = game.Players:GetPlayers()
tool = script.Parent
script.Parent.Handle.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and debounce == false then
debounce = true
hit.Parent.Humanoid:TakeDamage(50)
print("Damage Taken")
player.Character.Humanoid:UnequipTools(tool)
wait(5)
debounce = false
end
end)

5 comments
wasd
Are you trying to fire the event once the player unequips their tool?
no
Then what
I am not trying to fire an event what so ever