local Equipped = false
script.parent.Equipped:Connect(function()
Equipped = true
repeat
wait(1)
script.Parent.Power.Value = script.Parent.Power.Value - 1
until Equipped == false
script.Parent.Unequipped:Connect(function()
Equipped = false
end)
end)
when i unequip the tool it keeps subtracting power

2 comments
ignore the stuff in brackets i had to do it or i couldnt ask question
you combined the equipped and unequipped functions, seperate the two.