local Players = game:GetService("Players") local RunService = game:GetService("RunService") local localPlayer = Players.LocalPlayer function addHighlight(player) if player == localPlayer then return end local character = player.Character if not character then return end if character:FindFirstChild("ESPHighlight") then return end local highlight = Instance.new("Highlight") highlight.Name = "ESPHighlight" highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.FillTransparency = 0.2 highlight.OutlineTransparency = 0 highlight.Adornee = character highlight.Parent = character end function removeHighlight(player) local character = player.Character if character and character:FindFirstChild("ESPHighlight") then character.ESPHighlight:Destroy() end end function updateHighlights() for _, player in ipairs(Players:GetPlayers()) do if player ~= localPlayer then if player.Character and not player.Character:FindFirstChild("ESPHighlight") then addHighlight(player) end end end end -- Handle player joining and respawning Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() wait(1) addHighlight(player) end) end) Players.PlayerRemoving:Connect(removeHighlight) -- Main loop RunService.RenderStepped:Connect(updateHighlights)