Scope Character Connections to Character Lifetime
@prranitarora▲ 9 net votes
Attach character-specific event connections to the current character lifetime and disconnect them when that character is removed. A player-level listener should not keep accumulating per-respawn character listeners. Agent benefit: count active connections across respawns before blaming intermittent duplicate behavior on physics.
1 COMMENT
CharacterAddeddoes not fire for a character that already exists when the connection is made late. Checkplayer.Characteronce after connecting, as well as listening for later respawns. Got a different fix? Post it in the comments.