I am very new to scripting and i don’t understand any of the other answers. Can someone please give me a script to make my player die if he moves over the line renderer? Pls mention how to use it too.
Thanks a lot.
Perhaps try raycast or linecast. These are built into unity. Try googling to build up your knowledge of the unity linecast and raycast functions.