How to use only the needed result of raycastAll?

Trying to work on a quick example :sweat_smile: