Issue with raycasting

Hello fellow developers, I recently learnt about raycasting since for the first time I needed it but I want my ray to detect multiple targets in its way and detect if they have a humanoid. When I used raycasts all it did was get the first target but I want to get all of the targets in the direction of my ray and gather all of them that have a humanoid, how can I do this?