generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: jeez

Previous Thread :: Next Thread 
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
11 Jul 2013 01:59 AM
is or/and broken for if statements?
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
11 Jul 2013 02:02 AM
tell me
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
11 Jul 2013 02:03 AM
Not in the slightest.

Unless you actually mean "or/and".
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
11 Jul 2013 02:03 AM
...no, you are using them wrong
Report Abuse
777MrEpic is not online. 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 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
11 Jul 2013 02:06 AM
You probably meant

user.Character.Humanoid.Health > 1
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
11 Jul 2013 02:10 AM
Gdi. You should probably change the MaxHealth also, before the Health.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image