Visualizer Changing Colors

Hello! This is my first post on the DevForums. I hope we can all help each other out! Let’s get to the point tho.

I’m trying to get my visualizers to change colors. For instance; If the PlaybackLoudness of the audio’s really high, the visualizer’s colors turn brighter and more blue. But if the PlaybackLoudness of the audio is low, the visualizer’s colors turn darker.

Yes, I have tried if Sound.PlaybackLoudness >= Number Here but it’s not smooth.

Here’s a gif of one of my visualizers.
https://gyazo.com/c06e766580fbb116eca399d765ac20b5

2 Likes

You can try setting the visualizer color to Color3.fromRGB(0,0,Sound.PlaybackLoudness/3.9).
What this does, is that if PlaybackLoudness is 1000, the blue will be at 255, and when PlaybackLoudness is at 0, the blue will be at 0.

You need to divide by 3.9 because 1000 is outside of the 0 to 255 RGB range.

5 Likes

Thank you so much, that made much more sense to me, I just kinda forgot to reply but thank you!

2 Likes