That collision box method has many pitfalls, don’t learn it
( least being that you can interact with objects using your buttt )
If you’re going to do it properly with a line trace, you might as well learn about blueprint interfaces also: