How do I make a flashing audio visualizer

I am trying to create a gui audio visualizer, but I want it to flash instead of changing bar sizes can anyone help me? I tried lots of methods and none worked.

local sound = script.Parent.Song
while wait() do
	if sound.PlaybackLoudness >= 30 then
		script.Parent.Visible = true
		wait(0.5)
		script.Parent.Visible = false		
	end
end

Show a visual example of what you want, if you want a flashing effect then obviously you aren’t going to have a very sound representive visual effect since it’ll only ever “flash” when it’s above a threshold which means all your songs need to have a certain genre variation where it always has a loud “bass drop”

I don’t really have any visual example tho