Decal not projecting on anything else other than ground

You need to get the orientation right, too.

Can you show the start of the code also?