06-03-2011, 03:59 PM
Make it trace the players health, here's a bit of code to help you:
[lua]
--Code above
if player.Health >= 25 then --Assuming you already have the player sorted out
HealthBar.Color = Color(205,25,88) --Assuming the healthbar is one piece.
else
HealthBar.Color = Color(62,190,116)
--Code below
[/lua]
[lua]
--Code above
if player.Health >= 25 then --Assuming you already have the player sorted out
HealthBar.Color = Color(205,25,88) --Assuming the healthbar is one piece.
else
HealthBar.Color = Color(62,190,116)
--Code below
[/lua]