Gpa

It’s a long story, but it looks like I might fail cyber gym this 9 weeks. I could average it out to a C for my final grade but the F will still destroy my gpa. Right now I have straight As in honors and Ap classes. I have a high class rank and scored top 7% for PSAT. How much will this affect my chances of getting into a good school? (I’m a sophomore)