How to spawn a decal at the end of an object with multi line trace for objects?

How can i spawn a decal from the first part and the last part?