Need help/advice on a rhythm type game

Look into raycast / line trace and the hit result from it.