Universal Script 📌
4.0k Views
614 Executions

Health Bar UI

Universal Script 📌
Project_Remorse
Project_Remorse10K executions
2 years 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

Shows your health in a small bar at the top-left.

View Raw
pcall(function()
    local a=Instance.new("ScreenGui")local b=Instance.new("Frame")local c=Instance.new("UIStroke")local d=Instance.new("UICorner")local e=Instance.new("TextLabel")local f=Instance.new("Frame")a.Name="HealthBarUI"a.ResetOnSpawn=false
    a.Parent=game:GetService("CoreGui")b.Parent=a
    b.BackgroundColor3=Color3.fromRGB(25,25,25)b.Position=UDim2.new(0,10,0,10)b.Size=UDim2.new(0,180,0,20)
    c.Thickness=1.5
    c.Color=Color3.fromRGB(255,0,0)c.Parent=b
    d.CornerRadius=UDim.new(0,6)d.Parent=b
    e.Parent=b
    e.BackgroundTransparency=1
    e.Size=UDim2.new(1,0,1,0)
    e.Text="Health: 100"
    e.TextColor3=Color3.new(1,1,1)
    e.TextScaled=true
    e.Font=Enum.Font.SourceSansBold
    f.Name="HealthFill"f.Parent=b
    f.BackgroundColor3=Color3.fromRGB(255,0,0)
    f.Size=UDim2.new(1,0,1,0)
    f.ZIndex=0
    b.ClipsDescendants=true
    game:GetService("RunService").RenderStepped:Connect(function()
        local g=game.Players.LocalPlayer
        if g and g.Character and g.Character:FindFirstChild("Humanoid")then
            local h=g.Character.Humanoid
            local i=h.Health
            local j=h.MaxHealth
            f.Size=UDim2.new(i/j,0,1,0)
            e.Text="Health: "..math.floor(i)
        end
    end)
    game.Players.LocalPlayer.CharacterAdded:Connect(function()
        wait(1)
        a.Parent=game:GetService("CoreGui")
    end)
    loadstring("\112\114\105\110\116\40\34\67\114\101\100\105\116\115\32\80\114\111\106\101\99\116\95\82\101\109\111\114\115\101\226\157\164\239\184\143\34\41")()
end)


Comments

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

More universal scripts

See all
Script hub
2.0M
627.3k
Bumped 1 hour ago
Key System
Script hub
202.4k
2.3M
Bumped 3 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.8k
Bumped 5 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 8 hours ago
Key System
Universal Script 📌
33.4k
481.4k
Bumped 8 hours ago
Script hub
4.0M
2.7M
Bumped 8 hours ago

Script hub

Hall of Fame #5

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