Advertisement
guitarplayer616

Peripheral Wrapper

Nov 24th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. left,right,up,down,front,back = nil,nil,nil,nil,nil,nil
  2.  
  3. sides = {'left','right','up','down','front','back'}
  4. for i,v in pairs(sides) do
  5.     if v then
  6.         loadstring( v..[[ = peripheral.wrap("]]..v..[[
  7. ") ]] ) ()
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement