Retaking Classes at Different Community College

My family moved so I had to transfer to LBCC. I did poorly in a few classes at my old college and plan to retake them at LBCC. What happens to the bad grades at my old school? According to the retake policy of my old school they say the retake replaces the old grade, but what if it is the equivalent course from LBCC? Will it still be replaced? I couldn’t find any info on this. Any help will be much appreciated.