


Ray.BrickColor = BrickColor.new("Bright blue") Ray.BrickColor =BrickColor.new("Bright green") Ray.BrickColor =BrickColor.new("Really red") Ignore this if you do not care about the colour :) Ray.CFrame = CFrame.lookAt(midpoint,start) Ray.Size = Vector3.new(0.2,0.2s,direction.Magnitude) Local midpoint = (startPosition + endPosition) /2 Local endPosition = startPosition + direction Local function visRay(startPosition,direction,colour) If you need help understanding where your raycasts are firing I made a small function you can use in your own code should you wish to debug. When it comes to direction in relation to a part it gets even harder. It is quite hard to get to grips with how Vector3 works with Direction. Well, Vector3 is a way to describe the Position and the Orientation of an object.
