Help with raycasting down

I need help with casting a ray downward. How can I accomplish this?

4 Likes

It depends on where the origin is. Do you have an origin?

2 Likes

Yes, the point of origin is a Character’s HumanoidRootPart.

3 Likes

You can make a ray that goes down from a point a certain number of studs down on the Y-axis. I did something like this for a project I was working on recently:

local ray = Ray.new(char:WaitForChild("RightFoot").Position, Vector3.new(0, -2, 0))
7 Likes

I prefer to use worldroot:raycast but this works nonetheless.

1 Like

Oh okay. You simply put in the position parameters and you can do the same thing with world root: WorldRoot | Documentation - Roblox Creator Hub

1 Like

The “normal”? Do you mean where the start of the ray is?

Oh sorry. I was going to reply but it kept saying “DNS Request not successful” whenever I tried doing anything on the site. Anyway, do you need more help with anything?

1 Like

No I do not, thanks for asking!

2 Likes

That is great. Good luck buddy :slight_smile: