You have to make a value with only 3 health points then.
Make a.Changed to the value
Take the bars away for the health
Name the bars 1,2,3 for it to be easy.
Value.Changed:Connect(function(new)
for i,v in pairs(gui:GetChildren()) do
if i >= new then v.Visible = false
end end end)
so make a value for the health?
Yes. You need to make a custom value if they only have 3 hit points.
I made a value for the health but it doesn’t update when it loses health.
local BossHealth = game.workspace.Boss.Humanoid.Health
local HealthValue = script.parent
while true do
HealthValue.Value = BossHealth
end