Weight loss motivation

Does anyone have any tips? I’m trying to go on a diet but I keep falling off ☹️ someone told me that they like to buy a piece of clothing that is smaller than their current size to motivate them, has this worked for anyone????