Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local radar = peripheral.wrap("left")
- while true do
- local names = radar.getPlayerNames()
- if #names > 0 then
- rs.setOutput("top",true)
- else
- rs.setOutput("top",false)
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement