If you have your ray, position it at the ray origin + half the direction using a CFrame that has look vector in the same direction, and then size it to the Magnitude of the direction.
The Ray class isn’t deprecated btw (hence why Camera:ScreenPointToRay still exists). It’s only Workspace:FindPartOnRay and it’s siblings that are deprecated in favour of WorldRoot:Raycast
So you can happily use Rays and use the Ray.Origin and Ray.Direction properties.