health = 5
active = false
walkSpd = 32
script.Parent.Equipped:connect(function()
active = true
script.Parent.Parent.Humanoid.WalkSpeed = walkSpd
end)
script.Parent.Unequipped:connect(function()
active = false
script.Parent.Parent.Humanoid.WalkSpeed = 16 --problem area
end)
while wait(1) do --ignore
if active then
script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
end
end
It gives me "Humanoid is not a valid member of Backpack" at line 12. I can't figure out how to manipulate the humanoid of the player when the tool is uneqquiped.

1 comment
When its unequipped it goes back in the backpack, I would recommend going workspace:FindFirstChild(script.Parent.Parent.Parent.Name).Humanoid.WalkSpeed = 16