|
| 17 Oct 2015 12:29 AM |
Reached a stalemate with this script... Any suggestions as to how to fix it? As always thank you in advance scripters!
local Player= game.Players.LocalPlayer local defaulthp= Player.humanoid.Maxhealth local i=1 while true do wait (1) if i==1 then maxhealth = defaulthp + 100*Player.leaderstats.Level.Value end end |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 12:33 AM |
ocal Player= game.Players.LocalPlayer.Character local defaulthp= Player.humanoid.Maxhealth local i=1 while true do wait (1) if i==1 then maxhealth = defaulthp + 100*Player.leaderstats.Level.Value end end |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 01:12 AM |
| For some odd reason this script will not work. It doesn't return an error either. Any idea what might be the problem? |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 01:16 AM |
| When you save maxhealth, it's saving the value. Do humanoid.MaxHealth = |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 01:16 AM |
If you're talking about the one I just posted then it has a 'l' missing.
Also if may not be working since the script is prob executed before the player's character is loaded. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 01:18 AM |
local Player= game.Players.LocalPlayer local defaulthp= Player.Character.Humanoid.Maxhealth local i=1 while true do wait (1) if i==1 then Player.Character.Humanoid.MaxHealth = defaulthp + 100*Player.leaderstats.Level.Value end end
This is what you want |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2015 01:33 AM |
| Awesome scripting skills guys! Thank you both for your help. |
|
|
| Report Abuse |
|
|