loadstring([[ -- SETTINGS local ESP_ENABLED = true local BOX_COLOR = Color3.fromRGB(255, 0, 0) local LINE_COLOR = Color3.fromRGB(255, 255, 255) local TEXT_COLOR = Color3.fromRGB(255, 255, 255) local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Camera = workspace.CurrentCamera local LocalPlayer = Players.LocalPlayer local ESPObjects = {} local function CreateESP(player) if player == LocalPlayer then return end local box = Drawing.new("Square") box.Thickness = 1 box.Color = BOX_COLOR box.Filled = false local name = Drawing.new("Text") name.Size = 14 name.Color = TEXT_COLOR name.Center = true name.Outline = true local line = Drawing.new("Line") line.Thickness = 1 line.Color = LINE_COLOR ESPObjects[player] = {box = box, name = name, line = line} end local function RemoveESP(player) if ESPObjects[player] then for _, v in pairs(ESPObjects[player]) do v:Remove() end ESPObjects[player] = nil end end for _, player in pairs(Players:GetPlayers()) do CreateESP(player) end Players.PlayerAdded:Connect(CreateESP) Players.PlayerRemoving:Connect(RemoveESP) RunService.RenderStepped:Connect(function() if not ESP_ENABLED then return end for player, drawings in pairs(ESPObjects) do local char = player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local humanoid = char and char:FindFirstChild("Humanoid") if hrp and humanoid and humanoid.Health > 0 then local pos, onScreen = Camera:WorldToViewportPoint(hrp.Position) if onScreen then local size = Vector2.new(2000 / pos.Z, 3000 / pos.Z) drawings.box.Size = size drawings.box.Position = Vector2.new(pos.X - size.X / 2, pos.Y - size.Y / 2) drawings.box.Visible = true drawings.name.Text = player.Name drawings.name.Position = Vector2.new(pos.X, pos.Y - size.Y / 2 - 15) drawings.name.Visible = true drawings.line.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y) drawings.line.To = Vector2.new(pos.X, pos.Y) drawings.line.Visible = true else drawings.box.Visible = false drawings.name.Visible = false drawings.line.Visible = false end else drawings.box.Visible = false drawings.name.Visible = false drawings.line.Visible = false end end end) ]])()