Advertisement
Guest User

Untitled

a guest
May 28th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. try this
  2.  
  3. os.loadAPI("ocs/apis/sensor")
  4. prox = sensor.wrap("right") -- change to the correct side
  5.  
  6.  
  7. while true do
  8. t = prox.getTargets()
  9. for name, details in pairs(t)
  10. if details.Name == "Player" then
  11. local x = prox.getTargetDetails(name)
  12. print(x.Username)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement