|
| 20 Apr 2015 02:36 PM |
I have a script with the objective of raising the value of an IntValue named "MaxEnergy" When I test it online, the console tells me that CurrentLevel, The value that dictates the increase of MaxEnergy, as well as CurrentLevel's Parent, BU7Stats, don't exist! I don't know what else to try, I've re-written it, I've checked it, But nothing seems to give.
CharLvl = game.Players.LocalPlayer.PlayerGui.BU7Stats.CurrentLevel Max = script.Parent IncVal1 = math.random (1,4) IncVal2 = math.random (1,4) IncVal3 = IncVal1 + IncVal2 IncVal4 = IncVal3 - IncVal2 IncVal5 = IncVal4 + IncVal1
if CharLvl.Value == 1 then print (IncVal5) wait() Max.Value = Max.Value + (IncVal5) * 4
end
I'll also happily make a model for anyone that'd like to see the entire stat system.
Thanks. |
|
|
| Report Abuse |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
GRHolder
|
  |
| Joined: 27 Mar 2015 |
| Total Posts: 6 |
|
|
| 20 Apr 2015 03:08 PM |
| Test it using multiple players offline, then manually check to see if it is actually there. |
|
|
| Report Abuse |
|