How to change the direction of a raycast slightly

  1. What do you want to achieve? Keep it simple and clear!
    I want to change the direction of a raycast slightly. For example this:
    This is normal raycast with a direction of lookVector:
    image
    This is the raycast with the direction I want:
    image

So yeah. Help is appreciated

You’d have to manipulate the LookVector and change the empty spaces. Something like this:

local HRPLVect = Player.Character:FindFirstChild("HumanoidRootPart").CFrame.LookVector
local direction = Vector3.new(HRPLVect.X - 6, HRPLVect.Y, HRPLVect.Z * 18) -- since we know that the LookVector for the HRP is Z, we have to manually change the other values; because they are 0, and the Z is 1. (0, 0, 1)

Thanks for the reply. Thanks I guess.

Did it work, or are you still having some sort of problems?