Cannot get playbackloudness

I have an issue where I keep getting 0 when I print the playbackloudness of the sound

My script:

local neonpart = script.Parent.neon
local unneonpart = script.Parent.unneon
local TweenService = game:GetService("TweenService")

local tweenInfo =
	1, -- Time
	Enum.EasingStyle.Linear, -- EasingStyle
	Enum.EasingDirection.Out, -- EasingDirection
	-1, -- RepeatCount (when less than zero the tween will loop indefinitely)
	true, -- Reverses (tween will reverse once reaching it's goal)
	0 -- DelayTime

local visible = TweenService:Create(neonpart, tweenInfo, {Transparency=0})
local unvisible = TweenService:Create(neonpart, tweenInfo, {Transparency=1})
local sound = game:GetService("Workspace").Sound.Sound

while wait(.05) do
	local loudness =
	if sound.PlaybackLoudness>sound.Volume then

hope you could help me thank u

Isn’t it supposed to be Volume instead of PlaybackLoudness?

It appears that the change in Sound.PlaybackLoudness is only visible in a LocalScript, unlike what the documentation says.

PlaybackLoudness is not the same as Volume, where the former shows how loud the exact time of the sound is (e.g. @ 12 seconds, it’s 20.3, @ 16 seconds, it’s 43.2), ranging from 0 to 1000, and the latter is straightforward.

no that shows me the volume of the sound that it is set to

I’m pretty sure you cant get PlaybackLoudness on the server, so if your doing this on the server, try to do this client-sided.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.