Advertisement
User9684

Untitled

Nov 24th, 2023
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local detector = peripheral.find("playerDetector")
  2. if not detector then
  3. error("Couldn't find the stalker thingie")
  4. end
  5.  
  6. term.clear()
  7.  
  8. while true do
  9. local players = detector.getOnlinePlayers()
  10. local positions = ""
  11. for _, player in next, players do
  12. local position = detector.getPlayerPos(player)
  13. if not position then
  14. continue
  15. end
  16.  
  17. positions = positions..string.format("%s: XYZ: %d%d%d", player, position.X, position.Y, position.Z)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement