4,114 views
Description
This Script will give you NPC ESP and its a universal script so it will work in most of the games.
Features
- + ESP To NPC
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
end
end)
humanoid:SetAttribute("HealthConnected", true)
end
end
for _, descendant in pairs(workspace:GetDescendants()) do
if descendant:IsA("Humanoid") then
setupNPC(descendant)
end
end
workspace.DescendantAdded:Connect(function(descendant)
if descendant:IsA("Humanoid") then
setupNPC(descendant)
end
end)
while true do
wait(5)
for _, descendant in pairs(workspace:GetDescendants()) do
if descendant:IsA("Humanoid") then
local character = descendant.Parent
if character and not game.Players:GetPlayerFromCharacter(character) then
if not character:FindFirstChildOfClass("Highlight") then
setupNPC(descendant)
end
end
end
end
end
Script worked? 🚀 Boost it to #1 so others find it too.
Similar Scripts
1,618
20 days ago
Free
tower of hell
ToH script made by Nexus | inf jump, wallhop helper
7,278
3 months ago
Free
Tower of Hell
New SCRIPT! Auto Teleport to Final
7,030
5 months ago
Free
Tower of Hell
TOH Auto Tween to top OP Keyless
168,906
1 year ago
Free
Universal
XVC Script Hub [170+ GAMES]
7,926
1 year ago
Free
Tower of Hell
Teleport to last spawn point script
333
5 hours ago
Free
+1 Assassin Leveling
+1 Assassin Leveling script by Tora isme | Auto stage, Anti damage
🚀
Log in to boost
Boosting rockets this script to #1 on the homepage. A free account takes 30 seconds.
Log in
🚀
Out of boosts!
Grab boosts and rocket your favorite scripts to the top — plus join the booster wall with the RGB ring.
⚡ Go Pro — 10 boosts/month + zero ads
🚀
Boost this script?
It jumps to #1 in Recent Scripts and your avatar joins the booster wall.
🚀
Boosted! You're awesome 💜
Comments (0)
Log in to add a comment.