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