Since you're looking for a solid implementation, here is a standard script that utilizes the Highlight feature for an ESP (Extra Sensory Perception) effect. This script identifies players, applies the highlight, and ensures it's visible through walls. The Highlight ESP Script
: Roblox caps the number of active Highlight objects (usually around 31 at once). This script is lightweight because it uses the built-in engine feature rather than manual part-rendering. ESP SCRIPT WITH THE NEW ROBLOX HIGHLIGHT FEATUR...
-- LocalScript inside StarterPlayerScripts or StarterGui local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local function applyESP(player) if player == LocalPlayer then return end local function onCharacterAdded(character) -- Remove existing highlight if it exists local existing = character:FindFirstChild("ESPHighlight") if existing then existing:Destroy() end -- Create the new Highlight object local highlight = Instance.new("Highlight") highlight.Name = "ESPHighlight" highlight.Parent = character -- Customization highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Red fill highlight.FillTransparency = 0.5 -- Semi-transparent highlight.OutlineColor = Color3.fromRGB(255, 255, 255) -- White outline highlight.OutlineTransparency = 0 -- DepthMode.AlwaysOnTop makes it visible through walls highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop end if player.Character then onCharacterAdded(player.Character) end player.CharacterAdded:Connect(onCharacterAdded) end -- Apply to existing players and new ones joining for _, player in pairs(Players:GetPlayers()) do applyESP(player) end Players.PlayerAdded:Connect(applyESP) Use code with caution. Copied to clipboard Why this is the "New" Standard: Since you're looking for a solid implementation, here
It’s cool to see Roblox finally adding a native object. It’s way cleaner and more performant than the old methods of spamming SelectionBox or using transparent parts with neon textures. This script is lightweight because it uses the
: This is the magic property. It allows the highlight to be seen through any geometry without extra math or Raycasting.
: It hooks into CharacterAdded , so the ESP persists even after a player resets.