Need help for Invisible material

I avoided using that solution, but in the end it was the only answer for this problem.