How to find the position of intersection on a ray?

Hello again, DevForums! In the last post I made, I tried to find a way to position a block on a wall, and a person suggested that I use raycasting for this. So I have decided that I will make a part’s position equivalent to the position of the place where the ray and a part intersect. The only issue I have for this is that I don’t know how to get the position of where the ray and a part intersects.

This might help:

More specifically:

1 Like