Hi, any ideas why my when I print my audios PlaybackLoudness it prints nothing even though I can clearly hear it playing and like it’s the correct audio I’m checking?
My script’s goal is to tween the size of a part to the audio,
local OriginalSize = script.Parent.Mesh.Scale
local ts = game:GetService("TweenService")
script.Parent.ChildAdded:Connect(function(ch)
if ch:IsA("Sound") then
ch.Changed:Connect(function()
print(ch.PlaybackLoudness);
local Multiplier = ch.PlaybackLoudness
local Tween = ts:Create(script.Parent.Mesh, TweenInfo.new(0.05), {Scale = Vector3.new(OriginalSize.X * Multiplier, OriginalSize.Y * Multiplier, OriginalSize.Z * Multiplier)})
Tween:Play()
wait(0.05)
end)
script.Parent.Mesh.Scale = OriginalSize
end
end)
But for some reason, it is printing 0 even though when I see its obviously playing and I can hear it.