I’m having problems with my custom death script. I’ve set it so when the player joins the game their humanoid setting “BreakJointsOnDeath” is false. When the player dies, sometimes the server detects when the humanoid has died, and other times it doesn’t even run the code inside the “Humanoid.Died:Connect()” function.
Video:
It works sometimes, and other times the person is stuck dead forever. When I don’t set the humanoid’s “BreakJointsOnDeath” setting to false then this doesn’t happen.
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.BreakJointsOnDeath = false
humanoid.Died:Connect(function()
--stuff in here doesnt even run, i tested this by printing
end)
end)
end)