The only way to get rid of bad habits is to replace them with positive ones. The abovementioned positive habits will help you get into the right mindset for success, and will help keep you on track if you are to veer off course.
Show up consistently and do what you need to do.
Start the journey and walk through it entirely - success lies at the end. Stay committed to this journey - no matter how long it takes, and even if no one is watching - and you will reach your goals.
Have a positive mindset.
Look for opportunities, not problems. Focus on the silver lining of every difficult situation and you will be able to see a way out.
Visualize yourself achieving your goals.
The self belief that you will achieve your goals will push you closer and closer to them.
Be prepared to pay the price.
You may need to give up certain things to meet your goals. For example, if you want to get healthy physically, you may have to give up junk food. Remember, instant gratification feels good, but it doesn’t last. Give up the behaviors that keep you further away from your goals of lasting success.