Hello
I'm currently trying to get the amount of health remaining and put it in a TextLabel. However, I don't know how to make it like, "live". The current script I have doesn't update when I change my health. There is also a TextLabel I try to change the text color of whenever the health is below 50, 25 or even equal to 0.
if plr.Character.Humanoid.Health <= "50" then
sta.healcolor.TextColor3 = BrickColor.new("245, 230, 15")
end
if plr.Character.Humanoid.Health <= "25" then
sta.healcolor.TextColor3 = BrickColor.new("255, 95, 3")
end
if plr.Character.Humanoid.Health == "0" then
sta.healcolor.TextColor3 = BrickColor.new("255, 0, 0")
sta.healcolor.Text = "Dead"
end
sta.health.Text = plr.Character.Humanoid.Health
Please give me help for this. By the way, http://prntscr.com/iomkfu

2 comments
Start By Making A ScreenGui In StarterGui Then Make A Script With The Following Code And Make A Frame With A Frame Named "Health" Inside That Put A Frame Then A Frame Named Text With A TextLabel In That wait(0.5) local char = script.Parent.Parent.Parent.Character local hum = char.Humanoid hum.Changed:connect(function() script.Parent.Frame.Health.Frame.Size = UDim2.new(hum.Health / hum.MaxHealth
Copy and paste from wait :) hope this helped Also set the bacground colour and text colour in properties it will automaticly change :) Have A Good Day.