I want to know how to raycast, but the tutorials are too complicated for me, i want to make guns, and so much things, in need your help can you help me?

3 comments

0

Raycast is just a line from one point to another, Vectors are positions in your game, Raycasts link 2 positions local r = Ray.new(pos1,pos2), this way if you want to see parts on the ray use local part,position = workspace:FindPartOnRay(r).

0

and?

0

what do i do if i want to make a gun?