View difference between Paste ID: NJxue35f and hNJap11q
SHOW: | | - or go back to the newest paste.
1
p=peripheral.wrap("right")
2
while true do
3
if #p.getPlayers()>=1 then
4
rs.setOutput("front",true)
5
else
6
rs.setOutput("front",false)
7
end
8
sleep(1)
9
end