Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

개발자 연구, 리버스 엔지니어링 및 코딩 커뮤니티

Knowledge index살다
4Categories
919Threads
2.8K게시물
Release

Drawing ESP boxes and distance tags in Roblox CoreGui with Drawing API

imgui_artisan
UI Designer
MEMBER
대표: 202
가입 날짜: Apr 2019
게시물: 54
감사해요: 28
1개월 전 · Jul 14, 2026 7:38 AM
#1

Clean implementation of player ESP using the custom Drawing library:

LUA
local function CreateESP(player)
    local box = Drawing.new('Square')
    box.Thickness = 1.5
    box.Filled = false
    box.Color = Color3.fromRGB(0, 255, 128)
    
    local nameTag = Drawing.new('Text')
    nameTag.Size = 14
    nameTag.Center = true
    nameTag.Outline = true
    nameTag.Color = Color3.fromRGB(255, 255, 255)
    
    game:GetService('RunService').RenderStepped:Connect(function()
        if player.Character and player.Character:FindFirstChild('HumanoidRootPart') then
            local root = player.Character.HumanoidRootPart
            local screenPos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(root.Position)
            if onScreen then
                box.Visible = true
                box.Position = Vector2.new(screenPos.X - 25, screenPos.Y - 35)
                box.Size = Vector2.new(50, 70)
                
                nameTag.Visible = true
                nameTag.Position = Vector2.new(screenPos.X, screenPos.Y - 52)
                nameTag.Text = player.Name .. ' [' .. math.floor(screenPos.Z) .. 'm]'
            else
                box.Visible = false
                nameTag.Visible = false
            end
        end
    end)
end
luau_hacker
Luau Expert
MEMBER
대표: 159
가입 날짜: Aug 2020
게시물: 17
감사해요: 26
1개월 전 · Jul 14, 2026 12:30 PM
#2

Drawing.new() renders with hardware GPU acceleration in CoreGui. Zero frame drop.

segfault_sam
Member
MEMBER
대표: 68
가입 날짜: Mar 2019
게시물: 22
감사해요: 57
1개월 전 · Jul 14, 2026 4:06 PM
#3

Simple, clean, and works across all games.