I made a sort of boss bar where it displays the boss's current health and max health. Obviously it's supposed to update whenever it's health changes, but it isn't. There are no errors either. Here's my local script:
local healthLabel = script.Parent.Health
local boss = workspace:WaitForChild("BossMan")
local bossHealth = boss.Humanoid.Health
local bossMaxHealth = boss.Humanoid.MaxHealth
healthLabel.Text = bossHealth .. "/" .. bossMaxHealth
boss.Humanoid.HealthChanged:Connect(function()
healthLabel.Text = bossHealth .. "/" .. bossMaxHealth
end)
Any help on this matter would be very appreciated.

10 comments
Update: It actually does update but only after someone dies.
Solution 1; Make it a normal script
Already tried that
solution 2; make the script update everyone second
What?
I see a main error you did though, you changed the text label twice "healthLabel.Text = bossHealth .. "/" .. bossMaxHealth" and "healthLabel.Text = bossHealth .. "/" .. bossMaxHealth"
You're right, I probably didn't need to include that line, but it doesn't help my situation either.
Actually I did. I removed it and it just broke it even further.
you can try adding a while loop and place this line healthLabel.Text = bossHealth .. "/" .. bossMaxHealth in the loop
hes right, that would probably work