I have been looking at some wiki pages on Raycasting, and I have failed to understand how to direct the ray where you want it. I know that to make a ray, you do something like this:
local ray = Ray.new(startposition, direction?)
The thing I don't understand is what to put to make the ray go in the way I want. Do I have to put another point along the path I want it to go on?
Also, I am wondering if/how it is possible to send a ray in a certain direction based on a mouse click on the screen.
Thanks in advance!

2 comments
You'll also have to remember that if you don't change the length of the direction unit, and you keep it as a unit, the Ray will only detect things 1 stud away from the origin
To elaborate on TurboFusion's answer: While not documented, "direction" really is the direction and DISTANCE that a raycast will look in. A length 10 vector will go 10 studs, etc, so usually very large, like 1000, vectors are necessary to make it useful.