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 » Scripters
Home Search
 

Re: Level up

Previous Thread :: Next Thread 
darknight189517 is online. darknight189517
Joined: 27 Dec 2013
Total Posts: 1855
26 Dec 2015 11:32 PM
how can i make a level up system
Report Abuse
SwagCuzYolo is not online. SwagCuzYolo
Joined: 31 Oct 2013
Total Posts: 1224
26 Dec 2015 11:35 PM
If xp >= xpNeeded then
xp = xp - xpNeeded
Level = Level + 1
end
Report Abuse
LilMcManiac is online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
26 Dec 2015 11:53 PM
while wait() do
local ExP = game.Players.LocalPlayer.leaderstats.Experience
local ExPNeeded = 50
local Level = game.Players.LocalPlayer.leaderstats.Level
if ExP.Value >= ExPNeeded then
ExP.Value = ExP.Value - ExPNeeded
ExPNeeded = ExPNeeded*2/.5
Level.Value = Level.Value + 1
end
end
Report Abuse
SwagCuzYolo is not online. SwagCuzYolo
Joined: 31 Oct 2013
Total Posts: 1224
26 Dec 2015 11:56 PM
for the love of god do not use a loop that checks 30 times a second if the player has leveled up omfg
Report Abuse
LilMcManiac is online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
27 Dec 2015 12:04 AM
local ExP = game.Players.LocalPlayer.leaderstats.Experience
ExP.Changed:connect(value)
local Needed = 50
local Level = game.Players.LocalPlayer.leaderstats.Level
if value >= Needed then
Needed = Needed*2/.5
Level = Level + 1
value = value - Needed
end
end)
Report Abuse
darknight189517 is online. darknight189517
Joined: 27 Dec 2013
Total Posts: 1855
27 Dec 2015 12:24 AM
how do i do level bar
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
27 Dec 2015 12:46 AM
Use the xScale property
expBar.Size = UDim2.new(playerExp/requiredExp,0,1,0)
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
27 Dec 2015 12:52 AM
Put the check in the function you hopefully wrote for adding XP.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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