To legally use parts of an existing song, you usually need to obtain permission from the copyright holder or seek out appropriate licensing options. This may involve contacting the artist, songwriter, or publisher, and negotiating terms for using their copyrighted material. Depending on the song and the intended use, you may need to pay licensing fees or royalties to use the song legally.
It's important to respect copyright laws and obtain the necessary permissions to avoid potential legal issues and infringement claims. If you're not sure whether you need permission to use parts of a song, it's always advisable to consult with a legal expert or seek professional guidance to ensure you're complying with copyright regulations.