Reset script on user disconnect.

Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
Armored Dragon 2024-01-28 10:11:49 -06:00
parent ab4934e598
commit 721075b34b
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -16,6 +16,8 @@ const logs = (info) => console.log("[NAMETAGS] " + info);
// New user connected
AvatarManager.avatarAddedEvent.connect(reset);
// User disconnected
AvatarManager.avatarRemovedEvent.connect(reset);
function reset() {
if (!visible) return;