game.Players.LocalPlayer.Character.Humanoid.Changed:Connect(function(C) warn("A") end)
For example the code above, it needs to be called each time you die to work. Does events get disconnected when you die automatically?
Yes, event connections that are bound to a character's Humanoid will be disconnected automatically when the character respawns. This is because the old character Model is deleted, and the Humanoid, along with any event connections, will be destroyed along with it.