How Can I RayCast To the player lookvector to the right (want semi-right)

You See i’m new too RayCasting and math itself for lua and so I want the ray to be semi right so it can hit the block to the right

local RaycastResults4 = workspace:Raycast(-Head.Position, Head.CFrame.LookVector * 20 + Vector3.new(Head.Position.X,0,45), raycastParams)

iwant `

No, I tried that but I want to make it so the vector goes al little to the right to look at the block
iwant

Maybe this will help

You can probably try something like this for the direction vector:

Head.CFrame * Vector3.new(1, 0, 1).Unit * 20

The X or Z vector could be negative, I’m not sure.