When Humanoid is Destroyed After Death with Players.CharacterAutoLoads set to true, the Character will not Respawn

Hello. I have encountered a bug related to Players.CharacterAutoLoads. So basically when you die and your humanoid gets destroyed, your character will not respawn.

Here is a reproduction file containing the issue:
CharacterAutoLoadsBug.rbxl (27.9 KB)

Just click the button that says “Click me” to have the bug happen.

When you click the button, you will notice a timer will appear below the button which will count up towards Players.RespawnTime. You will also notice that the timer will go past Players.RespawnTime, which is the bug.

Sometimes the timer doesn’t appear as Humanoid.Died doesn’t fire.

If you reset normally, all is fine.

Calling destroy on the Humanoid after death probably causes signals to be disconnected and it disrupts the respawn cycle. Why are you doing this? What functionality are you trying to achieve?

I’m not trying to achieve anything, I just noticed this in a project I am associated with; the issue was an oversight by a developer. Basically, they loop through the character using :GetChildren and call :Destroy on the Instance.

This has been fixed by adding a check to see if the Instance is a BasePart.

2 Likes