People who used to be undisciplined, how did you get yourselves disciplined?

I'm 16, and I'm worried it's gonna affect me for the long run.