Am trying to set up raycast with a 2d/3d game, does someone know what this math is?

I’m making a 3d game on a hill. The player is always facing left. The camera is set to a camera part that resembles 2d but this is a 3d game. I’m looking to make a raycast end point x be determined by player’s mouse x i believe. and i’m looking to make the raycast y be dependent on the player’s world x position and mouse y position. does anyone know what kind of math this is so i can explore and research this? please let me know if you want more info to give an accurate response… here is a drawing to kinda get across what i’m talking about.

Do you mean Vector3:Dot? If so, that will get the angle.

not sure what you mean i had to use y = ax + b