Universal Script 📌
574 Views
71 Executions

Dev Scripts

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 script it basically shows you people's health bar above their head if they are dying or reset re-execute the script again (works in anygame)

View Raw
loadstring([[

local Players = game:GetService("Players")

local function createHealthBar(character)
    local humanoid = character:WaitForChild("Humanoid")
    local head = character:WaitForChild("Head")

    -- Remove duplicates
    if head:FindFirstChild("HealthBar") then
        head.HealthBar:Destroy()
    end

    -- Billboard
    local billboard = Instance.new("BillboardGui")
    billboard.Name = "HealthBar"
    billboard.Size = UDim2.new(8, 0, 2, 0)
    billboard.StudsOffset = Vector3.new(0, 4, 0)
    billboard.AlwaysOnTop = true
    billboard.Parent = head

    -- Background
    local bg = Instance.new("Frame")
    bg.Size = UDim2.new(1, 0, 0.3, 0)
    bg.Position = UDim2.new(0, 0, 0.7, 0)
    bg.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
    bg.BorderSizePixel = 0
    bg.Parent = billboard

    -- Green bar
    local bar = Instance.new("Frame")
    bar.Size = UDim2.new(1, 0, 1, 0)
    bar.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
    bar.BorderSizePixel = 0
    bar.Parent = bg

    -- Text (Exact HP)
    local text = Instance.new("TextLabel")
    text.Size = UDim2.new(1, 0, 1.3, 0)
    text.Position = UDim2.new(0, 0, -1.3, 0)


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