|
| 18 Jan 2017 09:09 AM |
| Okey so now i need help with a LevelUp System for my game. I need it to be like: Maximum level: 50 --if a player have reached level 50 then Prestige +1 and the level will begin from 1 again. XpNeeded: 700 --For each level, so first 700 to level 2 then ### # ### # #### XpNeeded to level up to level 3. The only things i need to be showing in the PlayerList is Prestige and Level. Hope anyone can help me with it! |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 18 Jan 2017 09:32 AM |
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=193511484
|
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 10:28 AM |
| Thats not helped me Sorry, still need help |
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 18 Jan 2017 10:31 AM |
| it is help, he gave you a reference you can use to make your own |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 10:34 AM |
| Yeah, but i don't understand it sorry, this is why it's not helped me |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Dorandir
|
  |
| Joined: 06 Aug 2016 |
| Total Posts: 844 |
|
| |
|
|
| 18 Jan 2017 02:55 PM |
| Bump1, and wiki is #### no help there |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 08:23 PM |
| Okey, thx for you help "Scripters" this forum is pretty "GOOD" to help people who need help. No one of you is Helping |
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 18 Jan 2017 08:42 PM |
| you're asking for people to do it for you, that's not helping |
|
|
| Report Abuse |
|
|
mani_fold
|
  |
| Joined: 23 Dec 2016 |
| Total Posts: 546 |
|
| |
|
|
| 18 Jan 2017 08:45 PM |
We aren't here to help, this is a place to discuss code. Not give it.
But, here is the basics for this.
local prestigeLevel = 50;
function prestige(player) local p = player:WaitForChild('leaderstats'):WaitForChild('Prestige'); p.Value = p.Value + 1 end
function levelUp(player) local l = player:WaitForChild("leaderstats"):WaitForChild('Level'); l.Value = l.Value + 1 if l.Value >= prestigeLevel then prestige(player) end end
And you level them up, using the levelUp function for whatever you want. |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 09:23 PM |
| im so sorry to say it, but it's not working |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jan 2017 09:50 PM |
How i do so the player get back to level 1 again
game.Players.ChildAdded:connect(function(player) local stats = Instance.new("Model", player) stats.Name = "leaderstats" local credits = Instance.new("StringValue", stats) credits.Name = "Tokens" credits.Value = 0
local EXP = Instance.new("StringValue", stats) EXP.Name = "EXP" EXP.Value = 0 local Level = Instance.new("StringValue", stats) Level.Name = "Level" Level.Value = 1 local Prestige = Instance.new("StringValue", stats) Prestige.Name = "Prestige" Prestige.Value = 1 EXP.Changed:connect(function() Level.Value = math.floor(EXP.Value / 1000) end)
Level.Changed:connect(function() Prestige.Value = math.floor(Level.Value / 50) end) end)
for i, player in ipairs(game.Players:GetPlayers()) do if player:FindFirstChild("Stats") then if player:FindFirstChild("EXP").Value > 1000 then player:FindFirstChild("Level").Value = player:FindFirstChild("Level").Value + 1 end if player:FindFirstChild("Level").Value > 50 then player:FindFirstChild("Prestige").Value = player:FindFirstChild("Prestige").Value + 1 end end end |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 09:55 PM |
People here will help if you if it is not just giving you code. Most won't just give you code cause they feel like it. Seems to me like you just want it for a game because you can't find it in free models or something. Although I have found a few good ones before from RPG kits if you just search through free models.
Dodos fer lyfe boi |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2017 10:00 PM |
| I have like 2 Days now, but im almost done with it, i just need help to make max prestige is 10 and when a player reach level 50 then player will be in Prestige 1 and level 0 |
|
|
| Report Abuse |
|
|