Health bar using uigradient transparency

i alredy found some other posts on how to use it but i don’t know how to adapt it to an health bar

You just make a ui, and connect it to update when the local player humanoid health is changed.

game.Players.LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
     --put code here
end)