Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local minutes = 2 --the amount of minutes before the currency goes up
  2. local amountToGoUpBy = 5 -- pretty self-explanatory
  3.  
  4. local function getMoney()
  5. wait(minutes*60)
  6. return true
  7. end
  8.  
  9. coroutine.resume(
  10. coroutine.create(function()
  11. spawn(function()
  12. local s,e = pcall(function()
  13. while getMoney() do
  14. for i,v in pairs(game.Players:GetChildren()) do
  15. v.leaderstats.Tokens.Value = v.leaderstats.Tokens.Value+amountToGoUpBy
  16. end
  17. end
  18. end)
  19. end)
  20. end)
  21. )--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement