|
| 28 Jul 2016 01:34 AM |
I don't want any humanoids to be able to have 0 or less health I don't know how to make that possible because weapons can do a lot of damage instantly putting the health at 0 or less and the maxhealth value can change depending on the armor and stuff. But I don't know how to do that with out making the health value be 1 or more all the time so then there would be no point to health at all so I'm just asking for help to make sure the health value can never be less than .001 I think I have a solution but I want a better way and there's no better way the the forums
here's my regeneration script in case that's usefull
while 1>0 do wait(regenRate.Value) hum.Health = hum.Health + regenAmount.Value hum.MaxHealth = StatHealth.StartHealth.Value + StatHealth.Value end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 28 Jul 2016 01:36 AM |
if humanoid.Health >= 0 then humanoid.Health = 100 end
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 01:45 AM |
| Nvm I have no need for impossible death anymore but thank you |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 28 Jul 2016 01:48 AM |
"while 1>0 do"
Why? Just why? |
|
|
| Report Abuse |
|
|