-- Change cooldown based on speed

humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
    if humanoid.WalkSpeed <= 16 then
        cooldown = defaultcooldown
    else
        cooldown = defaultcooldown / 2
    end
end)
