Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- local ranksCorr = {"Newbie", "Tryhard", "Camper", "Learner", "Adept", "Amateur", "Hardcore Player", "Gamer", "Game Guru", "Extreme Gamer", "Game Lord", "Epic Player", "Ultimate Gamer", "E-Sports Gamer", "Minor League Gamer", "Major League Gamer"}
- for i = 1, #game.Players:GetPlayers() do
- game.Players:GetPlayers()[i].lstats.Exp.Changed:Connect(function(newv)
- if newv >= game.Players:GetPlayers()[i].lstats.MaxExp.Value then
- local player = game.Players:GetPlayers()[i]
- player.lstats["Gamer Level"].Value = player.lstats["Gamer Level"].Value + 1
- player.lstats.Exp.Value = player.lstats.Exp.Value - player.lstats.MaxExp.Value
- player.lstats.MaxExp.Value = player.lstats.MaxExp.Value + (player.lstats.MaxExp.Value * 0.25) + 20
- while player.lstats.Exp.Value > player.lstats.MaxExp.Value do
- player.lstats["Gamer Level"].Value = player.lstats["Gamer Level"].Value + 1
- player.lstats.Exp.Value = player.lstats.Exp.Value - player.lstats.MaxExp.Value
- player.lstats.MaxExp.Value = player.lstats.MaxExp.Value + (player.lstats.MaxExp.Value * 0.25) + 20
- end
- print()
- table.
- print(ranksCorr[player.lstats["Gamer Level"].Value])-- player.lstats["Gamer Rank"].Value =
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement