Guest User

Untitled

a guest
Feb 9th, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. /c
  2.  
  3. local surface = game.player.surface
  4. local position = game.player.position
  5. local size = 20
  6.  
  7.  
  8. for index, e in pairs(surface.find_entities_filtered{area={{position.x-size, position.y-size},{position.x+size, position.y+size}}}) do
  9.  
  10.   if not (e.name == 'character') then
  11.     e.destroy()
  12.   end
  13.  
  14. end
Advertisement
Add Comment
Please, Sign In to add comment