CompCrafter

Untitled

Jun 1st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. local radius = 2
  2. local arePlayersAround = commands.exec( "testfor @a[r=" .. radius .. "]")
  3.  
  4. if arePlayersAround then
  5. print( "There is one or more players around me." )
  6. else
  7. print( "There are no players around me." )
  8. end
Add Comment
Please, Sign In to add comment