local a,z,U=0 U=Sound.SoundId;(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped:connect(function()z=Sound.PlaybackLoudness if Sound.IsPlaying and z==z then if U~=Sound.SoundId then a=0 U=Sound.SoundId end a=math.max(z,a)z=z/a if z==z then Set(math.floor(z*nBars),z*Height)end end end)while wait()do script.Activator.Value=not script.Activator.Value end

local MPL,PL,curr=0 curr=Sound.SoundId
game:GetService'RunService'.RenderStepped:connect(function()
	PL=Sound.PlaybackLoudness
	if Sound.IsPlaying and PL==PL then -- Sound is playing & PlaybackLoudness is not undefined
		if curr~=Sound.SoundId then MPL=0 -- Reset the relative Max PlaybackLoudness on song change
			curr=Sound.SoundId
		end
		MPL=math.max(PL,MPL) PL=PL/MPL -- Normalize PL based on relative Max PlaybackLoudness
		if PL==PL then
			Set(math.floor(PL*nBars),PL*Height) -- Modify bar relative to PlaybackLoudness
		end
	end
end)
while wait() do
	script.Activator.Value = not script.Activator.Value
end
