So I've been working on a health GUI and it all works nicely, the bar scales and everything, but the text just does not update. I'm not sure if it's an error with concatenation or what, but it just doesn't work. Thanks!
maxHealth = player.Bin.MaxHealth
health = maxHealth
character.Humanoid.MaxHealth = maxHealth.Value
character.Humanoid.Health = health.Value
character.Humanoid.HealthChanged:connect(function()
hpBar:TweenSize(UDim2.new(character.Humanoid.Health/character.Humanoid.MaxHealth,0,1,0),"Out","Quad",0.5)
hpLabel.Text = ""..math.floor(health.Value)..""
if character.Humanoid.Health == 0 then
hpBar:TweenSize(UDim2.new(0,0,1,0),"Out","Quad",0.5)
hpLabel.Text = ""..math.floor(health.Value)..""
end
end)

3 comments
worked perfectly, thanks
np
That's odd. Usually numbers automatically convert to strings when concatenated, in Lua.