Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I limit the number of players allowed in a certain region?

Asked by 3 years ago
Edited 3 years ago

I'm new here and very new to LUA. Is there a certain way I can limit how many players can be inside a region? Would I have to use Region3? I am still trying to understand how to use LUA, so if you could break down the solution to this, it would be much appreciated! Thanks.

1 answer

Log in to vote
0
Answered by
zadobyte 692 Moderation Voter
3 years ago

FindPartsInRegion3 has an argument that allows you to limit how many baseparts can be found in a Region3. You can use that to limit the number of character's in a Region3. (R6 has 6 parts while R15 has 15)

0
This is incorrect: that argument only limits the number of things returned to you; it doesn't impact anything else. chess123mate 5873 — 3y
0
So is there any other way I could make this work? If not is there any alternatives? SylvanPlayz 2 — 3y
Ad

Answer this question