Advertisement
bkind000_Games

Roblox Leaderboard Script

Aug 16th, 2021
3,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(plr)
  2.     local folder = Instance.new("Folder")
  3.     folder.Name = "leaderstats"
  4.     folder.Parent = plr
  5.    
  6.     local currency = Instance.new("IntValue")
  7.     currency.Name = "Currency"
  8.     currency.Parent = folder
  9.     currency.Value = 0
  10.    
  11.     local timePlayed = Instance.new("IntValue")
  12.     timePlayed.Name = "Time"
  13.     timePlayed.Parent = folder
  14.     timePlayed.Value = 0
  15.    
  16.     while wait(0) do
  17.         timePlayed.Value = timePlayed.Value + 1
  18.         wait(1)
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement