-- 🔔 NOTIFICAÇÕES AVATAR (VERSÃO FINAL ANTI-DUPLICAR) -- 📍 StarterPlayerScripts local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local player = Players.LocalPlayer
-- ================= TRAVA DE SEGURANÇA (GLOBAL) ================= if_G.NotificationSystemLoaded
.NotificationSystemLoaded =
activePlayers = {}
processingQueue = {}
(title, text, userId)
iconId = .. userId ..
(()
StarterGui:(, {
Title = title,
Text = text,
Duration = ,
Icon = iconId
})
)
(p)
p == player
activePlayers[p.UserId]
activePlayers[p.UserId] =
(, .. p.Name, p.UserId)
(p)
p == player
activePlayers[p.UserId]
activePlayers[p.UserId] =
(, .. p.Name, p.UserId)
_, p (Players:())
activePlayers[p.UserId] =
Players.PlayerAdded:((p)
processingQueue[p.UserId]
processingQueue[p.UserId] =
(p)
processingQueue[p.UserId] =
)
Players.PlayerRemoving:((p)
processingQueue[p.UserId]
processingQueue[p.UserId] =
(p)
processingQueue[p.UserId] =
)
player.CharacterAdded:(()
)
()
About this script
O sistema de notificações mais fluido e estável para scripts mobile. Chega de logs poluídos e mensagens repetidas. Este script foi otimizado para garantir que cada entrada e saída seja única, elegante e funcional.