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.