help me please

addhook('projectile', 'OnProjecTile') function OnProjecTile(id, wpn, x, y) if wpn == 52 then local team = player(id, 'team') local tablex = 'tableliving' if team == 1 then tablex = 'team2living' elseif team == 2 then tablex = 'team1living' end for _, v in pairs(player(0, tablex)) do local px = player(v, 'x') local py = player(v, 'y') if px >= (x - 320) and px <= (x + 320) and py >= (y - 240) and py <= (y + 240) then parse(string.format('customkill %s Flashed %s', id, v)) end end end end