I have no clue as to how to do this... I tried this (sample code)
local ray = Ray.new(pos1,(pos2-pos1).unit*750)
local ignores = {game.Player.Player1.Character,game.Workspace.Inbetween}
local hit,pos = game.Workspace:FindPartOnRay(ray,ignores)
but I didn't seem to work. Any tips or code you guys can offer me?

2 comments
Thanks, that makes the script I'm coding much, much easier!
No problem.