RandomLuaScripter

[ROBLOX] Seconds Played Leaderboard

Feb 8th, 2018
1,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. -- WARNING: Be sure to make this a Script and put it in Workspace if you want it to work!
  2.  
  3. game.Players.PlayerAdded:connect(function(p)
  4. local stats = Instance.new("IntValue", p)
  5. stats.Name = "leaderstats"
  6. local money = Instance.new("IntValue", stats)
  7. money.Name = "Time Played"
  8. money.Value = 0
  9. while true do
  10. wait(1)
  11. money.Value = money.Value + 1
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment