Set a raycast to a certain angle?

I would like to make a second raycast to an object and make it have a certain angle instead of just pointing straight forward from the object it’s from.

I have a raycast called theRaycast and a RaycastHit called hit.

Give this a try: