generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Experience GUI Bar

Previous Thread :: Next Thread 
brayden99 is not online. 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 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
11 May 2014 12:04 AM
Bump
Report Abuse
128GB is not online. 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 is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
11 May 2014 12:06 AM
Oops
Reverse that
PointsYouHave/PointsYouNeed
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
11 May 2014 12:15 AM
You deserve a medal.
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
11 May 2014 10:37 AM
#soldier
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image