Why isn't the Raycast working?

I’m attempting to implement RayCast, but encountering issues. While the ray is being generated successfully, the function Physics.Raycast(rayLight, 20, 10) returns a null value, preventing the identification of objects on the stage. I’ve attached an image of the code I’m using. Could you please advise on how to resolve this issue? Thank you for your assistance.

Raycast returns a tuple. Ex,
local success, hit = RayCast(tap.position)
Where hit is the RaycastHit that you’re interested in.