-- Roblox ESP Script (Highlights and Name Tags) local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer -- Function to create ESP on a specific player local function createESP(player) if player == LocalPlayer then return end -- Don't put ESP on yourself local function applyESP(character) -- Wait for the character to fully load local humanoidRootPart = character:WaitForChild("HumanoidRootPart", 5) local humanoid = character:WaitForChild("Humanoid", 5) if not humanoidRootPart then return end -- 1. Create the Box Highlight (See through walls) if not character:FindFirstChild("ESPHighlight") then local highlight = Instance.new("Highlight") highlight.Name = "ESPHighlight" highlight.Adornee = character 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 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop -- Makes it visible through walls highlight.Parent = character end -- 2. Create the Name Tag if not humanoidRootPart:FindFirstChild("ESPBillboard") then local billboard = Instance.new("BillboardGui") billboard.Name = "ESPBillboard" billboard.AlwaysOnTop = true billboard.Size = UDim2.new(0, 200, 0, 50) billboard.StudsOffset = Vector3.new(0, 3, 0) -- Positions text above the head billboard.Adornee = humanoidRootPart local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = player.Name textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text textLabel.TextStrokeTransparency = 0 -- Black outline for text textLabel.TextSize = 14 textLabel.Font = Enum.Font.SourceSansBold textLabel.Parent = billboard billboard.Parent = humanoidRootPart end end -- Apply ESP when character spawns if player.Character then applyESP(player.Character) end player.CharacterAdded:Connect(applyESP) end -- Run the ESP for all current players for _, player in ipairs(Players:GetPlayers()) do createESP(player) end -- Run the ESP for any new players who join Players.PlayerAdded:Connect(createESP)