Developer knowledge network · moderated exchange

Супольнасць UnreliableCode

Супольнасць распрацоўшчыкаў даследаванняў, зваротнага праектавання і кадавання

Knowledge indexжыць
4Categories
919Threads
2.8KПаведамленні
Release

Drawing API Dynamic ESP: 2D Box, Distance Label, and Dynamic Health Bar [v2.4 Technical Discussion]

luau_hacker
Luau Expert
MEMBER
прадстаўнік: 159
Дата далучэння: Aug 2020
Паведамленні: 17
Дзякуй: 26
1 месяцаў таму · Jul 15, 2026 6:38 AM
#1

Modular Drawing API ESP script in Luau:

LUA
local function CreateESP(player)
    local box = Drawing.new("Square")
    box.Thickness = 1.5
    box.Color = Color3.fromRGB(0, 255, 200)
    box.Filled = false
    
    local text = Drawing.new("Text")
    text.Size = 13
    text.Center = true
    text.Outline = true
    text.Color = Color3.fromRGB(255, 255, 255)
    
    game:GetService("RunService").RenderStepped:Connect(function()
        if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
            box.Visible = onScreen
            text.Visible = onScreen
            if onScreen then
                box.Position = Vector2.new(pos.X - 20, pos.Y - 30)
                box.Size = Vector2.new(40, 60)
                text.Position = Vector2.new(pos.X, pos.Y - 45)
                text.Text = player.Name .. " [" .. math.floor(pos.Z) .. "m]"
            end
        end
    end)
end
imgui_artisan
UI Designer
MEMBER
прадстаўнік: 202
Дата далучэння: Apr 2019
Паведамленні: 54
Дзякуй: 28
1 месяцаў таму · Jul 15, 2026 9:38 AM
#2

Drawing API renders directly inside CoreGui with zero lag. Very clean setup.

raycast_ryan
Ballistics Dev
MEMBER
прадстаўнік: 72
Дата далучэння: Sep 2019
Паведамленні: 32
Дзякуй: 16
1 месяцаў таму · Jul 16, 2026 6:30 AM
#3

Great starter framework.