LUA ERRROR: sys/lua/cs2dtibia/monster.lua:420 attempt to index a nil value Please Help Me"

Line 420 : if closest then 		closest[1]:damage(id, math.ceil(20*((PLAYERS[id].Level+50)*PLAYERS[id].tmp.atk/closest[1].def)/math.random(60, 140)), weapon)