Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- LazyAPI by Mat Programming Co (MatthewGB)
- -- http://mpc.comuf.com/lua/lazyapi.html
- function so(sidein, boolean) -- side: t(op), d(own), r(ight), l(left), f(ront), b(ack) || boolean(Binary): 1(on), 0(off)
- side = nil
- bool = nil
- if sidein == "t" then side = "top"
- elseif sidein == "d" then side = "bottom"
- elseif sidein == "r" then side = "right"
- elseif sidein == "l" then side = "left"
- elseif sidein == "f" then side = "front"
- elseif sidein == "b" then side = "back"
- else for i = 1,20 do print("LAZYAPI ERROR||FUNCTION so(side, bool(binary))||INVALID FIRST PARAMETER") sleep(0.2)
- end
- if boolean == 0 then
- bool = false
- elseif boolean == 1 then
- bool = true
- else for i = 1,20 do print("LAZYAPI ERROR||FUNCTION so(side, bool(binary))||INVALID SECOND PARAMETER") sleep(0.2)
- end
- rs.setOutput(side, bool)
- end
Advertisement
Add Comment
Please, Sign In to add comment