Universal Script 📌
840 Views
118 Executions

Dev scripts V2

Universal Script 📌
ScripMaker
ScripMakerPublished 5
1 year 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

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)

View Raw
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


Comments

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

More universal scripts

See all
Universal Script 📌
57.4k
270.0k
Bumped 2 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 5 hours ago
Key System
Universal Script 📌
33.2k
478.1k
Bumped 5 hours ago
Script hub
4.0M
2.7M
Bumped 5 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
575
2.6k
Bumped 6 hours ago
Script hub
7.8k
70.5k
Bumped 7 hours ago