I'm trying to make a boss fight, and in the boss fight is going to be a health bar, the health bar will show how much health the boss has and what it's max is, e.g. 1000/5000
Here is the script I already have:
local Humanoid = game.Workspace.Boss.Humanoid function update() script.Parent.Text = "("..Humanoid.Health.." / "..Humanoid.MaxHealth..")" end
update()
Humanoid:GetPropertyChangedSignal("Health"):Connect(update)
Whenever I run this script, the Humanoid.Health does not change

2 comments
What's wrong?
the health is not updating after damaging the boss