Vioce Chat Radius

Hi guys, I’ve been looking around everywhere, and I can’t seem to find what I’m looking for.

I need a script that I can turn on and off, which when enabled will prevent players from hearing one another over the microphone unless they are within a certain distance.

Ideally it would be nice if there was a command that would allow me to modify the range, but if this is too much work, then it’s fine w/o it.

I’ve looked on and found a few versions that supposedly do what I’m looking for, but none of them seem to be working anymore. (For instance, this:

Thank you very much!