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 Health Problem

Previous Thread :: Next Thread 
darkness999999 is not online. darkness999999
Joined: 25 Apr 2010
Total Posts: 11
16 Jul 2012 08:45 PM
I have a RPG that is already quite popular, but there is a problem: All monsters with MaxHealth above 100 always spawn with 100 health. I've tried various scripts to try to fix this, but none of them worked. This makes bosses really easy to kill, allowing for easy progress in the game. So, can anyone help me? :/

--darkness999999
Report Abuse
darkness999999 is not online. darkness999999
Joined: 25 Apr 2010
Total Posts: 11
17 Jul 2012 08:15 AM
bump
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
17 Jul 2012 08:22 AM
Insert this script into the humanoid.

script.Parent.Health = script.Parent.MaxHealth

The health bar above the character will show it only has 100/MaxHealth but the Health is the same as the MaxHealth.


-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
17 Jul 2012 08:28 AM
Maybe I should make a Free Modeled RPG, looks easy enough to get visits with.
Report Abuse
darkness999999 is not online. darkness999999
Joined: 25 Apr 2010
Total Posts: 11
17 Jul 2012 08:45 AM
@destroyer

I already tried that, but strangely it works only in Studio. When I play in a server it doesn't work...
Report Abuse
Partoguea is not online. Partoguea
Joined: 07 Jul 2010
Total Posts: 581
17 Jul 2012 08:45 AM
A humanoid has two values for health: MaxHealth and Health. Health is the current amount of health the humanoid has, Maxhealth is the maximum amount it can have. If you have a maxhealth of 1000, you'll have to set the health to 1000 too.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
17 Jul 2012 08:52 AM
It works in studio. It works in online. IT WORKS ONLINE. The HEALTHBAR only shows that it has 100/MaxHealth but really it has Health/MaxHealth. Just damage the enemy and the healthbar corrects itself.


-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
Report Abuse
darkness999999 is not online. darkness999999
Joined: 25 Apr 2010
Total Posts: 11
17 Jul 2012 09:34 AM
@destroyer:

In studio it works as intended. I damaged the enemy and its health didn't drop to 100. But when I played online, its health dropped to 100 when I hurt it (it has 300 maxhealth). Sometimes that script works online, though, but it is like 1 in 10 monsters. Maybe lag is causing this problem?

--darkness999999
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
17 Jul 2012 09:37 AM
It works for me. >.<



-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
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