How do you make parts to visualize a Ray?

So I made a Ray, but it’s not really positioning the way I want it to. I want to see what it looks like visually, so I know what I’m doing wrong. Anyone know how to make parts that display as the ray?

1 Like
2 Likes

what is params? i understand most of it but idk what i have to put there.

	local result = workspace:Raycast(rightorigin, rightposition, params)

this part has params, but idk what to put

You don’t need to put it. Params are just a way for you to specify any instances you want to ignore, or specify only specific instances to consider when the ray hits something, or to ignore/only allow certain collision groups.

I believe you need to pass a RaycastParams object if you need to use it