Advertisement
Aquarius_Raverus

Proof of Being a Developer 3

Jul 12th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. --// Credits Per Minute Script
  2.  
  3. AmountGiven = 10
  4. TimeDelay = 300
  5. NameOfCredits = "Credits"
  6.  
  7. while true do
  8.     wait(TimeDelay)
  9.     for i, v in pairs(game.Players:GetPlayers()) do
  10.         if v:FindFirstChild("leaderstats") then
  11.             v.leaderstats[NameOfCredits].Value = v.leaderstats[NameOfCredits].Value + AmountGiven
  12.         end
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement