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: RPG Monster always at 3/4 health

Previous Thread :: Next Thread 
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
07 Jul 2014 02:58 AM
when I open my place in ROBLOX studio, so also when I open my game.
How can I prevent this?
Some monsters do have it some not.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
07 Jul 2014 03:00 AM
a script that changes HP to the MaxHP
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
07 Jul 2014 03:00 AM
Could you show us some of the script?.
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
07 Jul 2014 03:05 AM
It's actually the humanoid,
When I enter like 200 max HP and 200 HP then the next time I open studio it's 100 HP and 200 max HP.
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
07 Jul 2014 06:36 AM
bbump
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
07 Jul 2014 06:42 AM
100/200 = 3/4 good to know

use a script to set the Health to MaxHealth when you spawn a monster.
Report Abuse
DEVMAC101 is not online. DEVMAC101
Joined: 01 May 2013
Total Posts: 856
07 Jul 2014 06:51 AM
I don't really understand due to lack of code, add the code or add a script that maxes out the health.
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
07 Jul 2014 06:53 AM
@Trioxide It was an example xDD
I don't really have a maxHP script but just the humanoid.
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
10 Jul 2014 01:26 PM
The max HP script works, but they still look like they have 3/4 - 1/2 health.
It looks so ugly but it does work now, what wrong with the humanoid's HP keep changing?
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
10 Jul 2014 05:02 PM
^^^^^^^^^^^^^^^^^^^^^^^^
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
11 Jul 2014 04:32 PM
^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^
Report Abuse
LuaSlayer is not online. LuaSlayer
Joined: 09 Jul 2014
Total Posts: 38
11 Jul 2014 04:34 PM
hum = script.Parent:findFirstChild("Enemy") --Humanoid or whatever

repeat wait() until hum
hum.Health = hum.MaxHealth
script:Destroy()
Report Abuse
RealistK is not online. RealistK
Joined: 20 Feb 2011
Total Posts: 3489
11 Jul 2014 05:05 PM
thanks
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