Can't get decal to appear.

Hi

I’m trying to get a decal to be spawned on the end of a line trace. I’m using this script:

324970-decal.png

Now I have created the decal with this material manually and it works fine so I don’t think it’s the material.

Any idea what I am doing wrong?

Figure it out the size was too small.