I am trying to print the PlaybackLoudness of a sound but it keeps outputing "sound loudness is: 0"
1 | while true do |
2 | sound = workspace.musix.PlaybackLoudness |
3 | stringlet = tostring (sound) |
4 | print ( "sound loudness is: " ..stringlet) |
5 | 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.