Advertisement
Ezteyh

player detector

Jun 23rd, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. detect = peripheral.wrap("bottom")
  2.  
  3. while true do
  4. sleep(0.1)
  5.  
  6.     if detect.isPlayerInRange(1, "Ezteyh") == true then
  7.         rs.setAnalogOutput("right", 1)
  8.         sleep(0.5)
  9.         rs.setAnalogOutput("right", 0)
  10.         sleep(10)
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement