|
| 07 Apr 2013 05:34 PM |
| How would I get the percent of much Health a player has left, and turn it into a percentage to the nearest whole number? :L |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2013 05:42 PM |
| Tell meh plz cuz im sho stoopid n i dunno how |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2013 05:43 PM |
| percent = math.floor(humanoid.Health / humanoid.MaxHealth + 0.5) |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2013 05:44 PM |
Oops, I made a mistake
percent = math.floor(humanoid.Health / humanoid.MaxHealth * 100 + 0.5) |
|
|
| Report Abuse |
|
|