Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Counter = 0
- Code = "++++++++++.[-.]"
- I = 0
- Ok = true
- function onTick()
- Counter = Counter + 1
- if Counter > 39 and Counter < 50 and Ok then
- I = I + 1
- L = string.sub(Code,I,I)
- if L == "+" then
- output.setBool(1,true)
- elseif L == "-" then
- output.setBool(2,true)
- elseif L == "<" then
- output.setBool(3,true)
- elseif L == ">" then
- output.setBool(4,true)
- elseif L == "[" then
- output.setBool(5,true)
- elseif L == "]" then
- output.setBool(6,true)
- elseif L == "." then
- output.setBool(7,true)
- elseif L == "," then
- output.setBool(8,true)
- end
- Ok = false
- elseif Counter > 59 then
- output.setBool(1,false)
- output.setBool(2,false)
- output.setBool(3,false)
- output.setBool(4,false)
- output.setBool(5,false)
- output.setBool(6,false)
- output.setBool(7,false)
- output.setBool(8,false)
- Ok = true
- Counter = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement