Dev scripts V2
Key RequiredUniversal

Dev scripts V2

Universal ScriptScripMakerScripMaker 807 views 73 executesUpdated Nov 30, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•54 lines (1780 chars)
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)
]])()

Features & Information

This is the V2 Script of the Dev Scripts this is much better than the first one in my opinion (Enjoy the script 👍) (WORKS ON EVERY GAME BOTH R6 AND R15)

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts