WolfGamesProgrammer

AddStats Version 2

Feb 11th, 2024
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | Source Code | 0 0
  1. local store = game:GetService("DataStoreService"):GetDataStore("ATM")
  2.  
  3. game.Players.PlayerAdded:Connect(function(Player)
  4.     local stats = Instance.new("Folder", Player)
  5.     stats.Name = "leaderstats"
  6.     local Ru = Instance.new("IntValue", stats)
  7.     Ru.Name = "Ru"
  8.     Ru.Value = 0
  9.     local Level = Instance.new("IntValue", stats)
  10.     Level.Name = "Level"
  11.     Level.Value = 0
  12.  
  13.     while true do
  14.         wait(10)
  15.         Level.Value += 1
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment