They can attack but under certain circumstances. In the moment of the spike, their hand must be under the net's height. That way, the spike is regular, even for a libero. For every attack that is above the net, a point will be given to an opponent team.