Particles (Audio Visualizers)

Greetings Developers!

First time I’m posting on here so bare with me.
I’m trying to figure out how to make audio visualizers for particles? I’ve figured out how to do tweening sizes for parts based off of the song’s “playbackloudness” as well as brightness and transparency thus far. I can’t seem to figure out how to do particle transparency.

Here is my script:

local sound = workspace.Sound
local particle = workspace.Particle.Yes

while true do
	game["Run Service"].RenderStepped:Wait()
	particle.Transparency = 1 - (sound.PlaybackLoudness / 1000)
end

Here’s a visual of how things look
https://streamable.com/xe6xqy

2 Likes

This is a localscript, yes? If it isn’t, then it can’t access playbackloudness

1 Like

Yes I have it in a local script in startercharacterscripts, I meant to put that in my topic. It works for the part and the brightness in the part as you can see. :sweat_smile:

I got it to work with this:

particle.Transparency = NumberSequence.new(1 - (sound.PlaybackLoudness / 1000))

You need a numbersequence to set particle.Transparency.

1 Like

Thanks so much! I also remembered my particles had a number sequence in size, so I appreciate your help it works now. :smile: