Roblox has recently added generalized shapecasting, which you can use to fire a cone-shape raycast without needing to use complex math:
1 Like
Roblox has recently added generalized shapecasting, which you can use to fire a cone-shape raycast without needing to use complex math: