Weight loss motivation

I've seen so many weight loss success stories on here. My question is- how does everyone do it? I need to lose at least 50 pounds, but i struggle to stay motivated. Any advice?