Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local minutes = 2 --the amount of minutes before the currency goes up
- local amountToGoUpBy = 5 -- pretty self-explanatory
- local function getMoney()
- wait(minutes*60)
- return true
- end
- coroutine.resume(
- coroutine.create(function()
- spawn(function()
- local s,e = pcall(function()
- while getMoney() do
- for i,v in pairs(game.Players:GetChildren()) do
- v.leaderstats.Tokens.Value = v.leaderstats.Tokens.Value+amountToGoUpBy
- end
- end
- end)
- end)
- end)
- )--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement