Wall Detecting

Is their a way to detect what your looking at is a wall? and maybe return a texture?

player:GetEyeTrace()

!trace.HitNonWorld

trace.HitMat (I think)

I’ll try it out, thanks for reply