777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 11 Jul 2013 01:59 AM |
| is or/and broken for if statements? |
|
|
| Report Abuse |
|
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
| |
|
|
| 11 Jul 2013 02:03 AM |
Not in the slightest.
Unless you actually mean "or/and". |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 02:03 AM |
| ...no, you are using them wrong |
|
|
| Report Abuse |
|
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 11 Jul 2013 02:05 AM |
if infhealth == true and user.Character.Humanoid.Health < 1 then wait(2) user.Character.Humanoid.MaxHealth = math.huge wait() user.Character.Humanoid.Health = math.huge end |
|
|
| Report Abuse |
|
|
lombardo2
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 1604 |
|
|
| 11 Jul 2013 02:06 AM |
You probably meant
user.Character.Humanoid.Health > 1 |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 02:07 AM |
Is infheath true and health less than 1?
Are you basically saying you still die, cos that's humanoids for you. |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 02:09 AM |
If that's not inside of a loop, it would only check once.
local CurrentHealth = user.Character.Humanoid.Health user.Character.Humanoid.HealthChanged:connect(function(Health) if Health < CurrentHealth then user.Character.Humanoid.Health = math.huge end end) |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 02:09 AM |
Ooops.
local CurrentHealth = user.Character.Humanoid.Health user.Character.Humanoid.HealthChanged:connect(function(Health) if Health < CurrentHealth and infhealth then user.Character.Humanoid.Health = math.huge end end) |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 02:10 AM |
| Gdi. You should probably change the MaxHealth also, before the Health. |
|
|
| Report Abuse |
|
|