Hello.
You have not specified you model number. Please specify your TV model number for better replies.
Generally, the best way to connect a soundbar with a modern LG TV is through the optical audio output. Connect a Optical audio wire directly from the TV set to the sound bar.
For example:
If it doesn't work this way, or your TV doesn't have an optical audio output, you can use an audio extractor.