Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sensor = peripheral.wrap('right')
- local loop = 1
- while true do
- sleep(1)
- print (loop)
- loop=loop+1
- players = sensor.getPlayers()
- rs.setOutput('left',false)
- anyone=table.getn(players)
- if anyone > 0 then
- print(" wooo ")
- rs.setOutput('left',true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement