Remote event invocation queue exhausted

The LocalScript should be under StarterPlayer.StarterCharacterScripts and look like this:

local sound = workspace.Sound

local animation = script:WaitForChild('Dance')
local humanoid = script.Parent:WaitForChild('Humanoid')
local animator = humanoid:WaitForChild("Animator")
local dance = animator:LoadAnimation(animation)

sound:GetPropertyChangedSignal("PlaybackLoudness"):Connect(function()
   print(sound.PlaybackLoudness)
end)

dance:Play()
dance.Looped = true

That’s weird. I thought local scripts cant play animations. Also the changedsignal event doesn’t print out the value.

I think the issue here is unsolved, but I don’t need to worry about it anymore since I changed to a runservice event.

As long as it’s their own character, that’s the ideal implementation

PlaybackLoudness won’t update if the sound isn’t playing

As a side note to sort of resolve the initial problem, is that the original “Remote event invocation queue exhausted” error happened when there was no script listening for .OnServerEvent. The script you had probably wasn’t running because it was not put into a container where it could run (or it was disabled).

1 Like