The ray you’re creating is too short! It only has a magnitude (distance) of 1 since you’re using .Unit. You can make it longer by removing the .Unit or multiplying the vector (the second argument) by the length you want the ray to be.
Make sure you’re saving the script and testing it. If it still doesn’t work, then the ray may be pointing in the opposite direction as what you want. In that case, you could negate the vector (the second parameter) to turn it in the opposite direction. Other ways include switching the order of the two positions you’re subtracting or starting the origin of the ray at part B.