Advertisement
EconomicSerg

For loop tutorial

Dec 30th, 2020
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. for i = 10,0,-1 do -- This means that the first number is the start, the second number is end, and the thrid is increase/decrease
  2.     wait(1) -- Wait 1 second so that the numbers can count down normally
  3.     print(i) -- i, meaning 10 down to 0
  4. end -- Needed ig idk
  5.  
  6. -- I don't really know how to do "for i, v in pairs"
  7. -- so I recomend that you watch a tutorial on that.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement