of     1   

200Ethan
#227686958Saturday, November 18, 2017 10:41 PM GMT

Let's say I wanted to make a nice gun. A realistic firing gun. Bullets don't go in a straight line, like rays do. Is there a way, where I could make a segment from point A -> point B, and then another one from B -> C? How would I do this? And if there's another easier/more efficient way, then I would like to know how. Thanks in advance!
200Ethan
#227687161Saturday, November 18, 2017 10:46 PM GMT

Bump
mattscy
#227687241Saturday, November 18, 2017 10:48 PM GMT

are you talking about something like this like the wiki mentions? "The max length of the ray is 1000, so you must keep this in mind while casting. If you need a ray longer than this, you can cast one ray, check if it hit anything, and if not, cast another ray starting at the end point of the previous one and continue on."
200Ethan
#227687595Saturday, November 18, 2017 10:57 PM GMT

Thanks, I was just using the code the wiki provide local ### # ######## Weapon.Handle.CFrame.p, -- origin (mouse.Hit.p - Weapon.Handle.CFrame.p).unit * 500 -- direction ) and didn't really pay attention on how it works. I think I got it now.

    of     1