Simple raycast question

I can’t seem to figure out what I am doing wrong when it comes to raycasts, I thought I understood them. So I set up two parts to represent the origin and destination of the ray and I put a part in between to simulate a simple situation. I set the origin to the position of the green brick and the direction to the position of the red brick. I thought by doing this it would detect the white brick but it does not. What am I doing wrong here?

3475508ec1a5e0b6a750e5bc85e2d282

local origin = workspace.Origin
local destination = workspace.Destination
local raycast = workspace:Raycast(origin.Position, destination.Position)

if raycast then
	print(raycast.Instance)
end

The second parameter is a direction, not a position.

Raycast(A, B - A)

Thanks, that makes sense. I guess this is what I get for not writing any code for nearly a year. Forgetting the simple things :joy: