The Code In StarterCharacterScript -
view source
1 local char = script.Parent 2 char.Changed:connect(function() 3 print("ads") 4 local hum = char.Humanoid 5 local health = hum.Health 6 local maxHealth = hum.MaxHealth 7 char.Head.HealthBar.GreenBar.Size = UDim2.new(health/maxHealth,0,1,0) 8 end)
Also the Billboard GUI is in the characters head
Problem -
Whenever the humanoid takes damage the green bar wont scale to its health.
Also its a billboard GUI in the players head