Can someone explain the process of repeating a class at community college?

Hey people, I got a D+ in AP calculus (11th grade) so I am taking it 2nd semester at community college. My advisers said that what I get in community college will replace my D+ (GPA wise). However she said that colleges will still be able to see that I did get a D+ in AP Calculus. How badly does this affect my college chances?

Since your HS produces the transcript, your GC will be the person to answer this question for you