How to make a circle raycast or something?

Hello, So latley I have been working on a small idea of mine that will require a circle raycast or something.
What I need is when the player clicks a button it will check all the parts in a distance from the like like 10 studs for example and if the obeject is in that distance it will print there name.

Thanks for any help.

1 Like

you can use the :GetPartBoundsInRadius to get every parts around the player with the distance given on the radius else you gonna raycast 360 times if ur target is only one direction

2 Likes

Raycast, then using math.sin and math.cos to form your circle.

Could you show how I would do that using a click dectetor function if thats not to much to ask.