Tron type Game Question

Hey guys, So here’s a interesting question me and my friend are trying to figure out for a quick game were working on to take a break from the bigger project. its a tron like game where you spawn a wall behind your character and if another player hits it they die.
Here’s the problem
online the player prefab is the same so when you run into the other players wall nothing happens because it’s tagged as your wall as well.
Is there a way i could write a script to say if the wall you hit didn’t spawn from local player then die?
Thanks in advance.

Instead of using tags, the walls should have data about which player created them.