I want to know how to make a script that tells me how many players are touching a part at once

I want to know how to make a script that tells me how many players are touching a part at once bc i want to clone a part/spear for each player that is touching the part.

But i don’t know where to begin.

Thanks for ur time and help

There’s already a forum post for this that I think will help you and has a solution already:

1 Like

workspace:GetPartsInPart(part) will return a table of parts that overlap with a part’s geometry
:GetTouchingParts() – does the same but doesnt have to overlap, just touch