Hi, I'm sort of new roblox scripting (just learnt raycasting) and am trying to make a small minigame game. When the timer runs out, I want to get how many players are in the playing field and give them all a win, but don't know how to get how many players there are. I've heard of Region3s and think thats how but don't know how to use them. Image (The semi-transaprent cylinder is where i want to know where it is.) : https://ibb.co/HgsnYLB
Any help appreciated

5 comments
Region3s are strictly rectangular, unfortunately, as you define them between two different Vector3s. To find how many players are in a region, use
:FindPartsInRegion3and then:GetPlayerFromCharacter()on the return. https://developer.roblox.com/en-us/api-reference/function/WorldRoot/FindPartsInRegion3How would i do it for cylinders them?
I really don't think you can with a Region3. You could try using magnitude, but you'd have to mess around with the distance a lot. Specifically, you'd have to pay attention to each component of the vector, to make sure your bounds are actually cylinder-like. https://developer.roblox.com/en-us/articles/Magnitude
Consider using tables instead of a Region3. If you need, I could give you a code demonstration.
region3 worked fine for me