Ts3 not launching on linux out of the box, after tweaks, launches without sound device detection

I’ve been trying to setup ts3 for the past few days on my linux desktop (bazzite distro), and I couldnt manage to get it to run normally, I tried installing through flatpak and it was the same error as installing in the website, I only managed to make it run by going through the terminal and using sudo ./ts3_client_runscript.sh --no-sandbox, it managed to launch, but, the audio did not work, it wasnt detected by PulseAudio, ALSA did detect it, but trying to play any test audio gave me the error: “Error opening playback device: could not open playback device”, and any mic test has completely no audio, no matter what input or output I select.