findNearestFriends

There are no glasses which give me hero:findNearestFriends(). I have looked in all of them but neither of them do for the level Interception in the desert. I use Lua

I think what you’re looking for is:

friend = hero.findNearest(hero.findFriends())

Try that.

Try local friend=hero.findNearest(hero.findFriends())

He is in lua? Then you have to format the code in LUA! :man_shrugging: :smiley_cat:
So, he might need to show us his code, for a level, or something like that

I suppose Chaboi’s version will do. The code does not necessarily depend on its surrounding code. Anyway thanks guys

1 Like

I guess so(20 characters)