|
| 30 Jan 2013 08:30 PM |
I have a Game Pass that increases max health to 200, and the script works. However, when you spawn, you have 100 health, and pass owners must let their health regen to get to 200. How do I make it so that pass owners spawn with 200 health?
Here is the current script:
GamePassId = ID_NUMBER Game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if Game:GetService("BadgeService"):UserHasBadge(player.userId, GamePassId) then repeat wait() until character character.Humanoid.MaxHealth = 200 end end) end) |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 08:31 PM |
character.Humanoid.MaxHealth = 200 character.Humanoid.Health = 200
¤ ¤ † K M <( •д• )> X D † ¤ ¤
|
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 09:27 PM |
character.Humanoid.MaxHealth = 200 character.Humanoid.Health = character.Humanoid.MaxHealth
--More efficient if he ever needs to edit it. :P
~Apply to join my primary group if you can script~ |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2013 05:07 PM |
| But if I do that, won't it repeatedly make the person's health 200? |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2013 05:14 PM |
It will give the person with the asset provided 200 health every time the person respawns.
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2013 05:15 PM |
| No. Only every time they spawn. |
|
|
| Report Abuse |
|
|
| |
|