
Key RequiredUniversal

loadstring([[
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local function CreateHealthNumber(model)
if model:FindFirstChild("Head") and not model:FindFirstChild("HealthNumber") then
local humanoid = model:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local gui = Instance.new("BillboardGui")
gui.Name = "HealthNumber"
gui.Adornee = model.Head
gui.Size = UDim2.new(0,100,0,50)
gui.StudsOffset = Vector3.new(0,3,0)
gui.AlwaysOnTop = true
gui.Parent = model
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1,0,1,0)
label.BackgroundTransparency = 1
label.TextColor3 = Color3.new(1,1,1)
label.TextStrokeColor3 = Color3.new(0,0,0)
label.TextStrokeTransparency = 0
label.Font = Enum.Font.GothamBlack
label.TextScaled = true
label.Parent = gui
RunService.RenderStepped:Connect(function()
if humanoid and humanoid.Parent then
local hp = math.floor(humanoid.Health)
local mhp = math.floor(humanoid.MaxHealth)
label.Text = hp .. " / " .. mhp
end
end)
end
end
-- Add to all existing characters + NPCs
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("Model") and v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") then
CreateHealthNumber(v)
end
end
-- Add when new NPCs/Players spawn
workspace.DescendantAdded:Connect(function(v)
if v:IsA("Model") and v:FindFirstChild("Head") then
task.wait(0.2)
if v:FindFirstChildOfClass("Humanoid") then
CreateHealthNumber(v)
end
end
end)
]])()No comments yet for this script.



