Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. --tab your shit every time the code in 'inside' of something new
  2. --assume i have a table of shit called 'nuts'
  3.  
  4. function update()
  5.     local counter = 0
  6.     for i = 1, #nuts do
  7.         if i == 0 then
  8.             counter = counter + 3
  9.         elseif i == 1 then
  10.             counter = counter + 2
  11.         else
  12.             counter = counter + 1
  13.         end
  14.     end
  15.  
  16.     if counter > 10 then
  17.         print("Welcome to my rod.")
  18.     else
  19.         print("Blow me.")
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement