Advertisement
MonsterStepDad

leaderstats

Jul 23rd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. local DataStoreService = game:GetService("DataStoreService")
  2. local experienceStore = DataStoreService:GetDataStore("PlayerExperience")
  3. local experienceStore = DataStoreService:GetDataStore("PlayerWages")
  4. local function onPlayerJoin(player)
  5.     local leaderstats = Instance.new("Folder")
  6.     leaderstats.Name = "leaderstats"
  7.     leaderstats.Parent = player
  8.    
  9.     local wages = Instance.new("IntValue")
  10.     wages.Name = "Wages"
  11.     wages.Value = 100
  12.     wages.Parent = leaderstats
  13.    
  14.     local exp = Instance.new("IntValue")
  15.     exp.Name = "Experience"
  16.     exp.Value = 1
  17.     exp.Parent = leaderstats
  18.    
  19. end
  20.  
  21. game.Players.PlayerAdded:Connect(onPlayerJoin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement