Raycast in object variable

but i have to make 500 scene variables anyways?

here the link to the “game” i want to implement this

it’s still basic and doesn’t work