|
| 26 Nov 2017 11:58 AM |
local bar = script.Parent local character = script.Parent.Parent.Parent.Parent.Parent.Parent.Character local text1 = script.Parent.Parent.TextLabel
function healthChange(health) local new = 28 * health / character.Humanoid.MaxHealth script.Parent:TweenSizeAndPosition(UDim2.new(0,new,0,8), UDim2.new(0, 10,0, 7)) text1.Text = 'HP: '..character.Humanoid.Health.." / "..character.Humanoid.MaxHealth
if character.Humanoid.Health < 60 and character.Humanoid.Health > 30 then script.Parent.BackgroundColor3 = Color3.new(204,153,0) elseif character.Humanoid.Health < 30 then script.Parent.BackgroundColor3 = Color3.new(255,0,0) else script.Parent.BackgroundColor3 = Color3.new(0,255,0) end end
character.Humanoid.HealthChanged:connect(healthChange)
|
|
|
| Report Abuse |
|
|
bro549
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 6 |
|
| |
|
zC0LX
|
  |
| Joined: 02 Apr 2017 |
| Total Posts: 59 |
|
|
| 26 Nov 2017 12:01 PM |
i sent a friend request, i need team create cuz its like 4 scripts
#code print('oh no an error!!') |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Nov 2017 12:41 PM |
Many thanks to bro549! Awesome dude.
|
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 26 Nov 2017 12:44 PM |
FE doesn't affect this tho
Fish Are Friends, Not Food |
|
|
| Report Abuse |
|
|