CharacterSoundEvent Errors STILL Spamming Server Log

I’ve made multiple posts on this in the past but cannot find any solution or reasoning to this problem. I’d imagine the number of requests being made creates massive lag in the game, and at the very least clutters the server side output making debugging practically impossible. These events come at least 10 times a second at times.

The only information I can provide is that I use :LoadCharacter(). Some scripts in my game spam :LoadCharacter () this is something im slowly fixing by working through the scripts is it possible this is the cause?

I’d assume so, because lately the games I’ve been working on have been getting tons of lag, I also think you should try using something other than :LoadCharacter() but just my opinion try the first option before the 2nd and let me know!

1 Like

It looks like this bug is related to spamming LoadCharacter causing issues in the character loading process.
We will look into fixing these issues but it’s not a good idea to spam APIs.

If it is difficult to fix the issue of spamming LoadCharacter there is a simple work-around.

  1. Fork the character Sound script by copying it from StarterCharacterScripts of a running simulation into StarterCharacterScripts in edit mode.
  2. Locate the top of the CreateNewSound function in the server Sound script.
  3. Add the following code to the very top of the function.
	local existingSound = parent:FindFirstChild(name)
	if existingSound and existingSound:IsA("Sound") then
		existingSound:Destroy()
	end
1 Like

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