How to check if multiple players are near a part?

Hi everyone,
I’m currently trying to figure out how I would go about creating a system to constantly check if 2 or more players are near a part. I’m not asking for code but I am asking if someone could tell me what I would need to look up and/or what I would need to do to achieve this.

--lazy script
while wait() do
local n = 0
for _, p in pairs(game.Players:GetPlayers()) do
n = n + p:DistanceFromCharacter(part.Position)<10 and 1 or 0
if n>=2 then

I didn’t even know DistanceFromCharacter existed, I’m sure this’ll help with the issue, thanks for the reply! :smiley: