Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Do events and stuff disconnect when you reset your character?

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?

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.