A ray that extends 5 studs from where rootpart is facing

I’m trying to create a ray with an origin at the rootpart and the direction towards where it is facing with an offset of 5, but I’m not sure how I should go about making this. Here’s a picture to describe what I mean:

image

The vectors you use for the ray would be:

Ray.new(HumanoidRootPart.Position, HumanoidRootPart.CFrame.LookVector * 5)
2 Likes

Thanks, this worked exactly how I wanted it to.