Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. --ranks = {120,300,600,1800,3600,7200,18000,36000,50000,100000}
  2. ranks = {25,45,60,100,130,160,180,200,230,250}
  3. local stat = "expi"
  4. local stat2 = "maxexpi"
  5. local ds = game:GetService("DataStoreService"):GetDataStore("playStatsBETA1")
  6. game.Players.PlayerAdded:connect(function(plr)
  7.     --Leaderstats
  8.     Instance.new("IntValue",plr).Name = "leaderstats"
  9.     --Play level stat
  10.     Instance.new("IntValue",plr.leaderstats).Name = "Play Level"
  11.     local lvl = plr.leaderstats["Play Level"]
  12.     local level = ds:GetAsync(level..plr.userId)
  13.     if level == nil then
  14.         level = 1
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement