you can set a goal for yourself and stay dedicated.
keep appreciating yourself for every milestone you achieve, it will give you a sense of satisfaction.
Don't pay heed to people who are discouraging you rather take it as a challenge to keep yourself dedicated to your goal.
Motivating yourself is a hard job. You can always think of why you started something. Don't blame yourself. You should aim and go forward.