SHARE
TWEET

Untitled

a guest Jun 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("ocs/apis/sensor")
  2. prox = sensor.wrap("right") -- change to the correct side
  3.  
  4.  
  5. while true do
  6. t = prox.getTargets()
  7. for name, details in pairs(t) do
  8. if details.Name == "Player" then
  9. local x = prox.getTargetDetails(name)
  10. if x~=nil
  11. print(x.Username)
  12. end
  13. end
  14. end
  15. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top