How does having bad credit affect getting an auto loan?

How does having bad credit affect my ability to get an auto loan? I’m trying to understand how my score might impact the loan terms.