Ray firing help

After the first ray hits the part (purple ray, yellow part showing where the ray hit) I want another ray going in the same direction the old ray was going, you can see the green ray is the new ray I’m trying to fire.

I guess just fire another ray with the same direction as the first ray, but at the position where the first one hit. (if it hit anything at all)

local Result1 = game.Workspace:RayCast(from, to, params) --purple ray

if Result1 then
    local HitPosition = Result1.position

    local Result2 = game.Workspace:RayCast(HitPosition, to, params) --green ray
end