Advertisement
MandB

Simulator Stats

Aug 17th, 2022
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local players = game:GetService("Players")
  2.  
  3. local function onPlayerAdded(player)
  4.    
  5.     local stats = Instance.new("Folder")
  6.     stats.Name = "leaderstats"
  7.     stats.Parent = player
  8.    
  9.     local coins = Instance.new("IntValue")
  10.     coins.Name = "Coins"
  11.     coins.Value = 0
  12.     coins.Parent = stats
  13.    
  14.     local strength = Instance.new("IntValue")
  15.     strength.Name = "Strength"
  16.     strength.Value = 0
  17.     strength.Parent = stats
  18.    
  19. end
  20.  
  21. players.PlayerAdded:Connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement