I am trying to make a parkour game, and I'm trying to make something that looks like this. Though I can't figure out how to have it detect if the conditions of the vault are met. Say, if you press space and a raycast hits a brick, the game checks if it hit the top of the brick. How do I do this?