Team outline in a ffa match

Im trying to create a outline similar to what you see for your teamates in game, but in a ffa match.
I know about those “wallhack box scripts” people do for a box around a player even infront of the wall, but im trying to achive a full boddy outline that is only visable behind walls, and I’m stuck, ive been tryint to think of some way to do it for past couple of hours and searching online but i havent tought of or found anything yet.
Any ideas would be greatly appriciated