--[[
game["Run Service"].RenderStepped:connect(function()
	local s = script.Parent.Parent.Sound
	if s and s.IsPlaying then
		local pbl = s.PlaybackLoudness
		Tool.UpdatePlaybackLoudness:FireServer(pbl)
	end
end)
]]
--

local GetPlaybackLoudness = Tool.RemoteFunction

GetPlaybackLoudness.OnClientInvoke = function()
	local s = script.Parent.Parent.Sound
	if s and s.IsPlaying then
		local pbl = s.PlaybackLoudness
		return pbl
	end
	return 0
end
