Confused. I can't seem to make a function that casts a ray from one point to another, returning an array of all of the objects inbetween the two points that are classified under BasePart.
Can anyone help?
I honestly have no clue how to do this.
Confused. I can't seem to make a function that casts a ray from one point to another, returning an array of all of the objects inbetween the two points that are classified under BasePart.
Can anyone help?
I honestly have no clue how to do this.
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
http://wiki.roblox.com/index.php?title=Ray.new <- start here ... you may also want to check this out -> http://wiki.roblox.com/index.php?title=How_to_Make_a_Raycasting_Lasergun
I forgot- this will probably be most helpful in getting the part the ray hit, and any descendants of that part -> http://wiki.roblox.com/index.php?title=FindPartOnRay
I forgot to mention that I have a decent amount of experience with RayCasting so I know the basics + more.
? This what you mean? http://hastebin.com/febanuzura.coffee
No, please re-read my question.