-- Подсветка игроков в команде Giant (оптимальная версия) local PlayersService = game:GetService("Players") local LocalPlayer = PlayersService.LocalPlayer -- Функция обновления подсветки для одного игрока local function updateGiantHighlight(player) local character = player.Character if not character then return end -- Удаляем старые объекты local oldHighlight = character:FindFirstChild("GiantESP") if oldHighlight then oldHighlight:Destroy() end local oldText = character:FindFirstChild("GiantText") if oldText then oldText:Destroy() end -- Проверяем команду if player.Team and player.Team.Name == "Giant" then -- Создаём Highlight local highlight = Instance.new("Highlight") highlight.Name = "GiantESP" highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.FillTransparency = 0.4 highlight.OutlineTransparency = 0.2 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = character -- Создаём текст local head = character:FindFirstChild("Head") if head then local billboard = Instance.new("BillboardGui") billboard.Name = "GiantText" billboard.Size = UDim2.new(0, 150, 0, 30) billboard.StudsOffset = Vector3.new(0, 3, 0) billboard.AlwaysOnTop = true billboard.Parent = head local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = "👾 GIANT" textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) textLabel.TextScaled = true textLabel.Font = Enum.Font.GothamBold textLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255) textLabel.TextStrokeTransparency = 0.3 textLabel.Parent = billboard end end end -- Обработчик появления персонажа local function onCharacterAdded(player, character) character:WaitForChild("HumanoidRootPart") -- Ждём полной загрузки task.wait(0.1) updateGiantHighlight(player) end -- Обработчик смены команды local function onTeamChanged(player) updateGiantHighlight(player) end -- Добавляем всем существующим игрокам for _, player in pairs(PlayersService:GetPlayers()) do if player ~= LocalPlayer then if player.Character then updateGiantHighlight(player) end player.CharacterAdded:Connect(function(character) onCharacterAdded(player, character) end) player:GetPropertyChangedSignal("Team"):Connect(function() onTeamChanged(player) end) end end -- Обработчик новых игроков PlayersService.PlayerAdded:Connect(function(player) if player ~= LocalPlayer then player.CharacterAdded:Connect(function(character) onCharacterAdded(player, character) end) player:GetPropertyChangedSignal("Team"):Connect(function() onTeamChanged(player) end) end end)