you shouldn't be having this issue, you might be doing this all wrong. ensure that you set up a direction for your raycast to fire, e.g x = 1 or y =1. place the raycast object where you would like it to fire from and set up its direction. if you plan on shooting on specific moving surfaces set up it's layer mask down below to avoid continuous true hit events.