WolfGamesProgrammer

AddStats

Oct 10th, 2023 (edited)
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 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. end)
Advertisement
Add Comment
Please, Sign In to add comment