Universal Script 📌
15.2k Views
11.2k Executions

Npc Esp V2

10K executions
Universal Script 📌
dodgealover
dodgealover10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

Early reports

100% say it works · 1 report in the last 2 weeks

Also noticed:

Description

sometimes if hp is "0" then the Npc is immortal

View Raw
local function setupNPC(humanoid)
    local character = humanoid.Parent
    if not character or game.Players:GetPlayerFromCharacter(character) then return end
    
    local highlight = character:FindFirstChildOfClass("Highlight")
    if not highlight then
        highlight = Instance.new("Highlight")
        highlight.FillTransparency = 0.5
        highlight.OutlineTransparency = 0
        highlight.Parent = character
    end
    
    local billboard = character:FindFirstChild("NPCHealthDisplay")
    if not billboard then
        billboard = Instance.new("BillboardGui")
        billboard.Name = "NPCHealthDisplay"
        billboard.Size = UDim2.new(4, 0, 1.5, 0)
        billboard.StudsOffset = Vector3.new(0, 2.5, 0)
        billboard.AlwaysOnTop = true
        billboard.Adornee = character:FindFirstChild("Head") or character.PrimaryPart or character:FindFirstChildWhichIsA("BasePart")
        
        local textLabel = Instance.new("TextLabel")
        textLabel.Size = UDim2.new(1, 0, 1, 0)
        textLabel.BackgroundTransparency = 1
        textLabel.Text = "HP: " .. (humanoid.MaxHealth > 0 and math.floor(humanoid.Health) or 0)
        textLabel.Font = Enum.Font.SourceSansBold
        textLabel.TextSize = 18
        textLabel.TextColor3 = Color3.new(1, 1, 1)
        textLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
        textLabel.TextStrokeTransparency = 0.5
        textLabel.Parent = billboard
        
        billboard.Parent = character
    end
    
    if not humanoid:GetAttribute("HealthConnected") then
        humanoid:GetPropertyChangedSignal("Health"):Connect(function()
            local hpText = "HP: " .. (humanoid.MaxHealth > 0 and math.floor(humanoid.Health) or 0)
            if billboard and billboard:FindFirstChildOfClass("TextLabel") then
                billboard:FindFirstChildOfClass("TextLabel").Text = hpText


Comments

3
Log in to join the conversation. Login
Hello183's profile picture
Hello1838 months ago

It's pretty good but it freezes my game when there's new npc's that spawn

2
TengeMan's profile picture
TengeMan1 year ago

Script is good sometimes

2
v1nnz's profile picture
v1nnz1 year ago

Iframes npc 🤯

2

More universal scripts

See all
Universal Script 📌
631
14.0k
Bumped 29 minutes ago
Universal Script 📌
25
1
Approved 41 minutes ago
Script hub
52.3k
220.6k
Bumped 44 minutes ago

Script hub

#7 today

KeylessVerified script badgeNo Lag Hub | KEYLESS 2026

Script hub
2.8M
902.6k
Bumped 45 minutes ago
Key System

Script hub

#6 today

Verified script badgeLumin Hub | #1 | Insta Steal

Script hub
142
8
Approved 2 hours ago
Universal Script 📌
75
4
Approved 2 hours ago