If only part of the sample is superconducting and the other parts are ordinary conductors or isolators, the superconducting islands could show diamagnetism while being isolated from each other which means that eletrical current needs to pass resistive areas and therefore experiences resistance.