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: Humanoid Health question

Previous Thread :: Next Thread 
FIRECAKE is not online. 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
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
15 Apr 2012 08:54 AM
yup, thats how you do it.
Report Abuse
3lex33 is not online. 3lex33
Joined: 08 Oct 2008
Total Posts: 5220
15 Apr 2012 08:59 AM
While true is not really needed.
Report Abuse
oysi92 is not online. 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
littlebro346 is not online. littlebro346
Joined: 13 Dec 2008
Total Posts: 468
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
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