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 » Scripters
Home Search
 

Re: Impossible Death

Previous Thread :: Next Thread 
MrTaco9001 is not online. MrTaco9001
Joined: 21 Jul 2013
Total Posts: 30
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 is not online. 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
MrTaco9001 is not online. MrTaco9001
Joined: 21 Jul 2013
Total Posts: 30
28 Jul 2016 01:45 AM
Nvm I have no need for impossible death anymore but thank you
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
28 Jul 2016 01:48 AM
"while 1>0 do"

Why? Just why?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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