In most situations, you should avoid transactions where there is a loan or lien against a vehicle unless you intend to accept full responsibility for the outstanding debt.
If the seller is transferring a loan to you, then the purchase price should be reduced by the corresponding loan amount.