FIRECAKE
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 25167 |
|
|
| 15 Apr 2012 08:43 AM |
How do I change the health of a humanoid through scripting?
Is it like
while true do x = script.Parent.Humanoid x.MaxHealth = 100 x.Health = 100 wait(10) x.Health = 0 end
⊂=-҉Ξ҉-=⊃ Top 30 Ways Not to be Eaten by Bears: #27. Don't smell like rotten fish ⊂=-҉Ξ҉-=⊃ |
|
|
| Report Abuse |
|
|
| |
|
3lex33
|
  |
| Joined: 08 Oct 2008 |
| Total Posts: 5220 |
|
|
| 15 Apr 2012 08:59 AM |
| While true is not really needed. |
|
|
| Report Abuse |
|
|
oysi92
|
  |
| Joined: 20 Nov 2008 |
| Total Posts: 361 |
|
|
| 15 Apr 2012 09:08 AM |
@3lex33 MaxHealth is not really needed. Wait is not really needed. An extra Health set is not really needed. The variable is not really needed.
... |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2012 09:21 AM |
| the max health his actually needed. if the maxhealth is not increased as well, then the health will revert to the max health. dealt with that issue ALOT. |
|
|
| Report Abuse |
|
|