Retaking courses at CC after failing out of university

<p>I'm retaking some courses at a community college that I got a D or F in at my previous university. I know the old grade will show up on my transcript because I'm not retaking it at my previous university. Will colleges only count the new grade, making the old grade not count but only be seen? Or will both grades be factored in my gpa? I plan on transferring next fall.</p>