hello devs , it want to know if there is a way of adding collision to my trail renderer

the idea is that the player is followed by a line and if he cross it he dead like tron movie if there is a way to solve this ?
i tried so much things

you could with a script!
I’d suggest this video: