Help Me Please

Can anyone help answer a question I have? IF I get a 3.87 GPA by the time I graduate from my community college, does my GPA reset to 0.0 when I get into a UC school? How about a private school? So then I would have two GPAs, one from whichever four year institution I transfer to and one from the community college? And when I apply for graduate school (I’m hoping to get into law school someday) they would average out they two GPAs and take that GPA into consideration. Can anyone please tell me if this is correct or not? From what I’ve heard it is, but I just want to confirm. Thank you guys.