Help with Raycast, need it to have the parts face the direction of the character

 RayReach = RayReach or (2^63 - 1)
      local VisualizerPart = Instance.new("Part")
        local RayStartPos =  RaycastStartInstance.Position + Vector3.new(0,StartRange,0)
        local Angle = math.pi * 2 * (i / 2 )
        local Direction = Vector3.new(math.cos(Angle), -1, math.sin(Angle))
        local Params = RaycastParams.new()
        Params.FilterDescendantsInstances = IgnoreList
        Params.FilterType = Enum.RaycastFilterType.Exclude
        Params.CollisionGroup = "Uncollidable"
        local Results = workspace:Raycast(RayStartPos,Direction * RayReach, Params)
                
        local ResultHit = Results.Instance
        if Results then

What it looks like:

What it should look like:
image

Just multiply the Vector by the lookvector of the characters primary part

what vector do i multiply, because there is multiple vectors in the script.

The vector that points the part. I don’t have the full code so I can’t tell you which one

Me and cheeseymine are both doing this together, im not too advanced in scripting so im not really sure what vector to add it into or let-alone where to even add that lookvector equation in the script. All of raycast components are there the rest of the script is just what the raycast does so dw (Btw RaycastStartInstance is the part where the ray starts at)

Try mutiplying Direction with the lookvector that might work