What happens if someone who doesn't have car insurance hits a BMW?

Someone without car insurance hit my car. Luckily it won't cost much but just say they had hit an expensive car and actually wrote it off, how would they pay for that?