Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local radius = 120.0
- local detector = peripheral.find( "playerDetector" )
- local integrator = peripheral.find( "redstoneIntegrator" )
- while( true ) do
- os.sleep( 2.0 )
- local players = detector.getPlayersInRange( radius )
- local inRange = ( ( #players ) ~= 0 )
- integrator.setOutput( "right", inRange )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement