|
| 07 Nov 2016 11:22 AM |
I need help with making a health bar. If the player has 0 - 100 (max)health then the gui has the right scale but if a player has more than 100 (max)health then it would't be right anymore! how do I make that the scale will always be UDim2.new(0, 0, 0.1, 0) or UDim2.new(1, 0, 0.1, 0) not bigger or smaller than that whatever the players health is. how do i make this right?
|
|
|
| Report Abuse |
|
|
Auzer
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 1590 |
|
|
| 07 Nov 2016 12:06 PM |
UDim2.new(Humanoid.MaxHealth/Humanoid.Health, 0, 0.1, 0)
|
|
|
| Report Abuse |
|
|
Auzer
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 1590 |
|
|
| 07 Nov 2016 12:07 PM |
*Humanoid.Health/Humanoid.MaxHealth
|
|
|
| Report Abuse |
|
|
| |
|