1. Open an empty baseplate template in Roblox Studio
2. Start Play Solo with character
3. Using explorer, anchor your HumanoidRootPart
4. Using explorer, set Humanoid.BreakJointsOnDeath to false
5. Try and reset your character.
I expect the humanoid health to be set to 0, the Died event to fire, and then the player to respawn. None of these things happen, except on the client. For whatever reason the client receives the death event and client health moves to zero, but the server does not.
When you reset, the client health moves to zero, all animations stop playing, and the client Died event is fired, but the character never respawns. If you move to server view and select the humanoid, the server health is still at 100. If you manually set the server health to 0, the Died event will still not fire and the humanoid will begin healing from the default health script. If you then un-anchor the HumanoidRootPart, the server will finally ‘catch up’ and the humanoid will die.
For me, the bug occurred when I tried to anchor the character for a death animation. My workaround was anchoring the RootPart on the server when Died fires, instead of on the client. Since the bug is caused by the client anchoring the RootPart before the server receives the death event, waiting until after the event is received to anchor resolved the issue. This workaround is specific to what I was trying to do though, there are other possible problem cases this may not apply to.
Issue Area: Engine
Issue Type: Other
Date First Experienced: 2022-09-08 00:09:00 (-07:00)
I ran into this a while back. It gets in the way of death animations.
Interestingly, if you weld an unanchored HRP to an anchored part (with the same Humanoid conditions), you can sometimes have a character not die too.
Thanks for the report! We’ll follow up when we have an update for you.
To add to this, I can replicate this bug in my game by having the player standing inside an object (like a tent) that the object isn’t technically anchored, but if you die in the tent wall, the body becomes stuck in the tent as described here, the die event won’t fire. When I encountered it, chalked it up to engine weirdness, but I can reproduce it. The same setup is, the “BreakJoinsOnDeath” is false on my players (for ragdoll stuff later on in the game) and oddly enough, if you destroy the tent the player got stuck in, the event will then fire properly. Until then, the player is laying on the ground like they died and from another player’s perspective, the player is stuck on the floor, spinning around, lol.
Any update on this? Still on-going & causing issues for my game as it relies on such mechanic.
I litterally just experienced this lol. The character refused to die
I’ve been able to track down at least what happens, not sure of the root issue. When this happens and the player Humanoid health is 0 on the player screen, the Health is still good on the server side (it still registers positive health), so the server never fires the death event. Going to try an experiment to see if the Client side code would be able to detect zero health and send that info to the server to properly “kill” the player if they become stuck.
A quick test confirmed. I had the server print out what it thinks the player Humanoid health is and then ran the script on the Client that prints out the same info, so I get a reading side by side from the server side and client side at the same time. When the bug happens, the client shows 0 health and the server still shows 100 (when doing a menu reset for example). So at least there is a workaround for this bug, but hopefully it will get some more dev attention to not need a workaround the issue. My guess is, when the player does a reset from the menu or dies in some other way, that info never makes it to the server to fire the death event. Just a guess…
I just encountered this issue when making a detain system for a group. Hopefully this can be resolved soon!
I have a ragdoll script that runs in server and my character just refuses to play the death animation and then do a ragdoll. I think it’s worth using Humanoid.Died from the client, and then sending it to the server using Remote Event. But I haven’t tested it yet.
this is still happening as of today