I am trying to print the PlaybackLoudness of a sound but it keeps outputing "sound loudness is: 0"
while true do sound = workspace.musix.PlaybackLoudness stringlet = tostring(sound) print("sound loudness is: "..stringlet) wait(1) end
I have tried using tostring but nothing changes really... Can anyone help?
Instantiate the Sound object on the client. PlaybackLoudness
does not replicate.
Try updating the sound loudness faster by using:
~~~~~~~~~~~~~~~~~ while game:GetService("RunService").Heartbeat:wait() do
local sound = workspace.musix.PlaybackLoudness
local stringlet = sound
print("sound loudness is: ".. stringlet)
end
~~~~~~~~~~~~~~~~~
And dont play the sound in a localscript and get the loudness in a server script.