To legally use gaming music in your videos, consider using royalty-free music, obtain a license for copyrighted music, or collaborate with musicians and artists to create custom tracks for your content. Always make sure to credit the music creators and follow the guidelines and obligations stated in the licensing agreements.