How to use only the needed result of raycastAll?

Do you mean with the script(s) from this project?