Universal Script πŸ“Œ
626 Views
2.6k Executions

Text esp

Universal Script πŸ“Œ
Colton9
Colton9First script
3 months ago

Reviewed by QueueSherlockPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

eh, detect text lol

View Raw
-- Delta Executor 3D Text ESP Script (Small & Shortened Text)
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local LocalPlayer = Players.LocalPlayer

-- Table to keep track of active ESP elements to prevent duplicates
local espCache = {}
local MAX_CHAR_LENGTH = 30 -- Change this number if you want longer or shorter text previews

local function updateTextESP()
    -- Scan the Workspace for any text elements
    for _, descendant in ipairs(Workspace:GetDescendants()) do
        if descendant:IsA("TextLabel") or descendant:IsA("TextBox") or descendant:IsA("TextButton") then
            local textContent = descendant.Text
            if textContent and textContent ~= "" then
                
                -- Shorten text if it exceeds the maximum character length
                if #textContent > MAX_CHAR_LENGTH then
                    textContent = string.sub(textContent, 1, MAX_CHAR_LENGTH) .. "..."
                end

                -- Find the nearest BasePart parent to anchor the 3D billboard
                local parentPart = descendant:FindFirstAncestorWhichIsA("BasePart")
                
                if parentPart then
                    if not espCache[parentPart] then
                        -- Create a 3D Billboard Gui attached to the part
                        local billboard = Instance.new("BillboardGui")
                        billboard.Name = "TextESP_3D"
                        billboard.Adornee = parentPart
                        billboard.Size = UDim2.new(0, 200, 0, 30)
                        billboard.StudsOffset = Vector3.new(0, 3, 0) -- Position slightly above the object
                        billboard.AlwaysOnTop = true
                        
                        local textLabel = Instance.new("TextLabel")
                        textLabel.Size = UDim2.new(1, 0, 1, 0)
                        textLabel.BackgroundTransparency = 1
                        textLabel.TextColor3 = Color3.fromRGB(0, 255, 150)
                        textLabel.TextScaled = false
                        textLabel.TextSize = 13 -- Small text size


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
33.2k
298.5k
Bumped 3 hours ago
Script hub
23.7k
5.2k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
251
772
Bumped 3 hours ago
Universal Script πŸ“Œ
1.7k
31.0k
Bumped 3 hours ago
Script hub
4.1M
559.5k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.2k
Bumped 5 hours ago
Key System