Universal Script 📌
68 Views
1.7k Executions

Esp 2d UPDATE

Universal Script 📌
Nguyenvubao
NguyenvubaoFirst script
3 months ago
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

Script esp 2D has updated

View Raw
-- Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

-- Biến trạng thái Bật/Tắt
local ESPEnabled = false

-- Khởi tạo ESP cho một Player
local function CreateESP(player)
    -- Khung vuông (Box)
    local Box = Drawing.new("Square")
    Box.Visible = false
    Box.Color = Color3.fromRGB(255, 255, 0) -- Màu vàng
    Box.Thickness = 1.5
    Box.Transparency = 1
    Box.Filled = false

    -- Đường gạch (Tracer Line)
    local Line = Drawing.new("Line")
    Line.Visible = false
    Line.Color = Color3.fromRGB(255, 255, 255) -- Màu trắng
    Line.Thickness = 1
    Line.Transparency = 1

    local Connection
    Connection = RunService.RenderStepped:Connect(function()
        if ESPEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 then
            local HRP = player.Character.HumanoidRootPart
            local Vector, OnScreen = Camera:WorldToViewportPoint(HRP.Position)

            if OnScreen then
                -- Tính toán chính xác vị trí đỉnh đầu và chân nhân vật
                local HeadPos = Camera:WorldToViewportPoint(HRP.Position + Vector3.new(0, 3, 0))
                local FeetPos = Camera:WorldToViewportPoint(HRP.Position - Vector3.new(0, 3.5, 0))

                local Height = math.abs(HeadPos.Y - FeetPos.Y)
                local Width = Height / 1.5


Comments

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

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.5k
Bumped 4 hours ago
Script hub
49.8k
12.3k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
727
209
Approved 15 hours ago
Universal Script 📌
631
2.5k
Approved 16 hours ago
Universal Script 📌
593
589
Approved 16 hours ago