How do I make different stuff happen depending on the frequencies in a sound?

What I mean is that I once managed to find a script that makes Frames move just like equalizer bars, its easier to show


At first, the script didn’t work since there were a lot of errors but when I fixed the errors the script made the Frames work just like equalizer bars!
Anyways, does anyone know how I can manage to recreate that? Since I can’t figure out the part of the code that makes the Frames move depending on the frequencies. I want to be able to move parts or maybe possibly even change colors depending on the frequencies of a sound/music just like that in the video, so is there a way to recreate that?
Thanks.

Showing the script that made this effect would be really helpful.

Perhaps what it did was have multiple of the sound playing at once: The original song without effects, and other copies of the song with an equalizer sound effect. The original song is the sound you hear as normal, while the equalizer sounds are hidden away somewhere you can’t hear them. Their equalizer effects have their properties set so that all frequency channels are muted except for one. So, to get an idea of how loud specific frequencies are, you would use PlaybackLoudness to get the loudness of the equalized sounds, letting you do whatever is needed with the result.

Additionally, if having more precision than just three ranges of frequencies is wanted, then using PitchShiftSoundEffects on extra equalized sounds could allow for muting frequencies closer to the bounds of the frequency range.

Relevant links if needed:
EqualizerSoundEffect
PlaybackLoudness
PitchShiftSoundEffect