It is part of my health gui. The health GUI is completley text based. I was wanting to know how I could make it turn red if your health is 25 or below.
local health = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health
local mhealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.MaxHealth
script.Parent.Text = string.sub(string.lower(health),1,3)..""
function onChange()
local health = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health
local mhealth = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.MaxHealth
script.Parent.Text = string.sub(string.lower(health),1,3)..""
end
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Changed:connect(onChange)

1 comment
Do I make a new script inside the textbox?