How to make audio visualizer

Please help me.
I found this audio visualizer in the game “olego’s ServerSide executor” by @UniDevx.
I want it because it LOOKS SO GOOD!!!
Is this possible?

5 Likes

yes, it’s hard and take some times to done this audio visualizer.

1 Like

but how to do that???
i know some scripting
or just find a model if u can

i messaged the owner of the game

There’s a property a sound object has called PlaybackLoudness, which you can use to make the bars change size relative to how loud the sound is at a certain timestamp.

This article has a code sample which you can take a look at :wink:.
https://developer.roblox.com/en-us/api-reference/property/Sound/PlaybackLoudness

1 Like

yes but thats just one bar… and its not smooth
the color changing effect is easy but…
and i know about the PlaybackLoudness object

If I had to guess, I’d say there’s have a loop that goes through each bar and sets the height of the bar depending on how loud the sound is. Then, from that height, the bars are tweened back to a height of 0. This loop is probably nested (inside another loop) so that the bars’ heights can be raised from the beginning again.

That’s just my guess, though. The game developer might have done it differently!

2 Likes

ok i will try to make that…
and IT MUST BE DONE THAT WAY!

1 Like

also i found a admin script made by the game developer that has the same audio visualizer

everyone can make scripts for this if they know and post it here! only if u want

You could try looking at how the person made this and probably implement it into your own game.

Audio Visual.rbxl (63.2 KB)

1 Like

yes but it needs to be a gui
also good visualiser
the script is soo long in the admin script…
i did not found the visualizer part

its not hard,just a localscript thats maybe 100-150 lines

ill try to find deobfuscated version

Just make a frame with bars and with UiListLayout

while true do
	for i,g in pairs(Frame:GetChildren()) do
		if g:IsA("Frame") then
			g.Size = UDim2.new(0,10,0,math.clamp(sound.PlaybackLoudness*0.20,1,100))
			wait()
	game:GetService("TweenService"):Create(g,TweenInfo.new(1.5,Enum.EasingStyle.Cubic,Enum.EasingDirection.In,0,false,0),{Size = UDim2.new(0,10,0,2)}):Play()				
		end	
	end
end
3 Likes

tysm i never excepted to see u here

[UPDATE]
managed to get it working, its perfect for my music player that will be open - source and free to use!
the code i used:
@UniDevx’s code, but modified some values:

while true do
	for i,g in pairs(script.Parent:GetChildren()) do
		if g:IsA("Frame") then
			g.Size = UDim2.new(0,21,0,math.clamp(script.Parent.Parent.main.PlaybackLoudness*0.25,1,130))
			wait()
			game:GetService("TweenService"):Create(g,TweenInfo.new(0.6,Enum.EasingStyle.Cubic,Enum.EasingDirection.In,0,false,0),{Size = UDim2.new(0,21,0,2)}):Play()				
		end	
	end
end
1 Like

now time to code the gui! (the music player)