Advertisement
LazerAio

SwBfAutoInput.lua

Dec 11th, 2022 (edited)
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. Counter = 0
  2. Code = "++++++++++.[-.]"
  3. I = 0
  4. Ok = true
  5. function onTick()
  6.     Counter = Counter + 1
  7.     if Counter > 39 and Counter < 50 and Ok then
  8.         I = I + 1
  9.         L = string.sub(Code,I,I)
  10.         if L == "+" then
  11.             output.setBool(1,true)
  12.         elseif L == "-" then
  13.             output.setBool(2,true)
  14.         elseif L == "<" then
  15.             output.setBool(3,true)
  16.         elseif L == ">" then
  17.             output.setBool(4,true)
  18.         elseif L == "[" then
  19.             output.setBool(5,true)
  20.         elseif L == "]" then
  21.             output.setBool(6,true)
  22.         elseif L == "." then
  23.             output.setBool(7,true)
  24.         elseif L == "," then
  25.             output.setBool(8,true)
  26.         end
  27.         Ok = false
  28.     elseif Counter > 59 then
  29.         output.setBool(1,false)
  30.         output.setBool(2,false)
  31.         output.setBool(3,false)
  32.         output.setBool(4,false)
  33.         output.setBool(5,false)
  34.         output.setBool(6,false)
  35.         output.setBool(7,false)
  36.         output.setBool(8,false)
  37.         Ok = true
  38.         Counter = 0
  39.     end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement