This script won't change my speed to normal or when I die it won't give me back 1000 walk speed.

debounce = true

script.Parent.Touched:connect(function(hit)
    local h = hit.Parent:FindFirstChild("Humanoid")
    if (h ~= nil and debounce == true) then
    debounce = false
        if h.WalkSpeed == 16 then
           h.WalkSpeed = 1000
           wait(.25)
        end
    else 
        if h.Walkspeed == 1000 then
           h.Walkspeed = 16
        end 
    debounce = true  
    end
end)