Healthbar
Key Required

Healthbar

The Battle BricksAbsolutelyNoIdeaAbsolutelyNoIdea 3.4K views 10.9K executesUpdated Jun 13, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•115 lines (3482 chars)
local Players = game:GetService("Players")
local tracked = {}

local function makeBar(model)
	if tracked[model] then return end
	
	local root = model:FindFirstChild("HumanoidRootPart")
	local head = model:FindFirstChild("Head")
	local humanoid = model:FindFirstChildOfClass("Humanoid")
	if not root or not head or not humanoid then return end

	local bb = Instance.new("BillboardGui")
	bb.Adornee = root
	bb.Size = UDim2.fromOffset(130, 14)
	bb.StudsOffset = Vector3.new(0, (head.Position.Y + head.Size.Y/2 + 1) - root.Position.Y, 0)
	bb.AlwaysOnTop = true
	bb.LightInfluence = 0
	bb.MaxDistance = 100
	bb.Parent = root

	local bg = Instance.new("Frame")
	bg.Size = UDim2.fromScale(1, 1)
	bg.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
	bg.BorderSizePixel = 0
	bg.Parent = bb
	
	local corner = Instance.new("UICorner")
	corner.CornerRadius = UDim.new(0, 5)
	corner.Parent = bg

	local clip = Instance.new("Frame")
	clip.Size = UDim2.fromScale(1, 1)
	clip.BackgroundTransparency = 1
	clip.BorderSizePixel = 0
	clip.ClipsDescendants = true
	clip.Parent = bg
	
	local clipCorner = Instance.new("UICorner")
	clipCorner.CornerRadius = UDim.new(0, 5)
	clipCorner.Parent = clip

	local dmg, hp = Instance.new("Frame"), Instance.new("Frame")
	for _, f in ipairs({dmg, hp}) do
		f.Size = UDim2.fromScale(1, 1)
		f.BorderSizePixel = 0
		f.Parent = clip
	end
	dmg.BackgroundColor3 = Color3.fromRGB(255, 70, 70)
	hp.BackgroundColor3 = Color3.fromRGB(0, 220, 220)

	local txt = Instance.new("TextLabel")
	txt.Size = UDim2.fromScale(1, 1)
	txt.BackgroundTransparency = 1
	txt.Font = Enum.Font.GothamBold
	txt.TextScaled = true
	txt.TextColor3 = Color3.new(1, 1, 1)
	txt.TextStrokeTransparency = 0
	txt.ZIndex = 5
	txt.Parent = bb

	local lastHealth, damageToken = humanoid.Health, 0

	local function update()
		if not model.Parent then return end
		local ratio = math.max(humanoid.Health, 0) / math.max(humanoid.MaxHealth, 1)
		txt.Text = string.format("%d / %d", math.floor(humanoid.Health), math.floor(humanoid.MaxHealth))
		hp.Size = UDim2.new(ratio, 0, 1, 0)

		if humanoid.Health < lastHealth then
			damageToken += 1
			local token, target = damageToken, ratio
			task.delay(1.2, function()
				if token == damageToken and dmg.Parent then
					dmg:TweenSize(UDim2.new(target, 0, 1, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.9, true)
				end
			end)
		elseif humanoid.Health > lastHealth then
			damageToken += 1
			dmg.Size = UDim2.new(ratio, 0, 1, 0)
		end
		lastHealth = humanoid.Health
	end

	update()
	humanoid.HealthChanged:Connect(update)
	model.AncestryChanged:Connect(function()
		if not model.Parent and tracked[model] then
			tracked[model].gui:Destroy()
			tracked[model] = nil
		end
	end)
	tracked[model] = {gui = bb}
end

local function scan(model)
	if tracked[model] or not model:FindFirstChildOfClass("Humanoid") or not model:FindFirstChild("HumanoidRootPart") then return end
	makeBar(model)
end

for _, p in ipairs(Players:GetPlayers()) do
	if p.Character then task.wait(0.5) scan(p.Character) end
	p.CharacterAdded:Connect(function(c) task.wait(0.5) scan(c) end)
end

Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c) task.wait(0.5) scan(c) end)
end)

for _, o in ipairs(workspace:GetDescendants()) do
	if o:IsA("Model") and not Players:GetPlayerFromCharacter(o) then scan(o) end
end

workspace.DescendantAdded:Connect(function(o)
	if o:IsA("Model") and not Players:GetPlayerFromCharacter(o) then task.wait(0.5) scan(o) end
end)

Features & Information

You can probably tell this is made by an ai, also, self explanatory, shows the hp of the enemies/friendly units
#TBB

Community Comments (27)

Hwbeifon4bHwbeifon4bJun 14, 2026

if possible, can you make a script that makes unknown objects 2 star tumore easier

Replying to @Hwbeifon4b
tgddgu3tgddgu3Jun 14, 2026

@Hwbeifon4b There's nothing to make it easier

Replying to @tgddgu3
BraindeadOnMyHeadBraindeadOnMyHeadJun 14, 2026

@tgddgu3 is there any script to make uncooked business tumore easier

Replying to @BraindeadOnMyHead
tgddgu3tgddgu3Jun 16, 2026(edited)

@BraindeadOnMyHead idk

IAmChudIAmChudJun 18, 2026

Can we get clock math solved script

Iamsogood228Iamsogood228Jun 20, 2026

i can't post script then who want to test my instant answer clock tumore chapter 4 stage 30? to this time to next day if no body i will wait for 7 day

Replying to @Iamsogood228
EXEC62EXEC62Jun 20, 2026

@Iamsogood228 can i test it i was on chronos star 3

Replying to @EXEC62
Iamsogood228Iamsogood228Jun 20, 2026

@EXEC62 ok

Replying to @Iamsogood228
SMELLYSTINKY*SMELLYSTINKY*Jun 20, 2026

@Iamsogood228 yo let me test

EXEC62EXEC62Jun 20, 2026

Where the script

iamsogood83iamsogood83Jun 20, 2026

Wait for coming soon

iamsogood83iamsogood83Jun 20, 2026

I got ban from scriptblox bc it think me bot

iamsogood83iamsogood83Jun 20, 2026

I know everyone want to instant answer clock math but i can't btw just wait for i can post then it will release (thank for understand)

iamsogood83iamsogood83Jun 20, 2026

But have one way is go to Rscript it will release in Rscript Tomorrow

Replying to @iamsogood83
EXEC62EXEC62Jun 20, 2026

@iamsogood83 okay

Replying to @iamsogood83
EXEC62EXEC62Jun 21, 2026(edited)

@iamsogood83 when you release chronos solver on Rscript

IeatbricksforlunchIeatbricksforlunchJun 20, 2026

Can someone do 2/3 stars Chronos Clock solver? I will ask for helping me and the others

rg1767231rg1767231Jun 20, 2026

@Iamsogood228 can i test the script?

AUTOMORTISAUTOMORTISJun 25, 2026

hello everyone, announcement. I will make a script that AUTO CLICKS mortis's attacks. beware though it might be a little bit laggy, and is helped by a LITTLE BIT of ai

Replying to @AUTOMORTIS
Foxxy_Foxxy_Jun 26, 2026

@AUTOMORTIS *ay, can you also make one for gamek1d? Like remove every pop-up and the interface of the stream? I promise I can be a tester

Amsyarha696969Amsyarha696969Jun 26, 2026

Does this make me data reset?

rg1767231rg1767231Jul 22, 2026

@iamsogood83 what happened to your server?

IcecoldbrewIcecoldbrewJul 29, 2026

@iamsogood83 can u send new invite link

IcecoldbrewIcecoldbrewJul 29, 2026

It's expired

IcecoldbrewIcecoldbrewJul 30, 2026

Hey

IcecoldbrewIcecoldbrewJul 31, 2026

Release hub discord new?

197100093197100093Jul 31, 2026

@iamsogood83 Could you give me a new Discord link

More Scripts for The Battle Bricks