|
| 03 Jul 2017 08:09 PM |
I am making a health thing for myself sing I am the creator and I want to have 1000 health, while the other players only have 100, but anytime I set it I have less.
The question I am asking is, why can't you go past 100HP. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jul 2017 08:18 PM |
| you have to set the maxhealth to the desired number (1000) before you can make any changes |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2017 08:19 PM |
Set MaxHealth to 1000, then Health to 1000
#code if you then break end |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2017 10:55 PM |
| But would n't allow the other users health to get that much? |
|
|
| Report Abuse |
|
|
| |
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 05 Jul 2017 11:14 PM |
| It would need to be set per player. |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2017 11:59 PM |
maxhealth = 1000 health = 1000
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) local h = c.Humanoid repeat h = c.Humanoid until h ~= nil h.MaxHealth = 1000 h.Health = 1000 end) end)
Professional script forum reviewer. |
|
|
| Report Abuse |
|
|