brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 10 May 2014 11:38 PM |
How can I make the gui bar size determined on the experience points needed?
Lv = LevelSystem['Level'] Exp = LevelSystem['Experience']
ExpN = 5
function LevelUpdate() if Exp.Value == ExpN then Lv.Value = Lv.Value + 1 ExpN = Lv.Value^2*5 print(ExpN..' Experience needed for next level!') end print(ExpN..' Experience needed for level up!') Bar.Size = UDim2.new(Size thingy here?,0,1,0) --This line end
Exp.Changed:connect(function()LevelUpdate()end)LevelUpdate() |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 11 May 2014 12:06 AM |
Bar.Size = UDim2.new(PointsYouNeed/PointsYouHave,0,1,0) --This line
|
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 11 May 2014 12:06 AM |
Oops Reverse that PointsYouHave/PointsYouNeed |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|
| |
|