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:
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)