You want to look good when you’ve lost weight [as well as improving your health], that’s the point right?
You could lose weight through dieting and reducing your calorie intake, but you will look like shit when the body fat comes off and you’re just a bag of bones.
This is why it is important to preserve muscle when you are losing weight. To do so you need to partake in resistance training and consume adequate protein.
When losing weight, you should try for a minimum of 3 sessions per week and 2+ grams of protein per kg of body weight.