Hello, I'm a novice at coding and I've been working on an rpg battle system that makes it so whenever a player touches an enemy NPC, The Player who initiates the Battle is warped to a room while the NPC is temporarily replaced with a Model that is able to warp other players to join in on the battle.
The Part I'am stuck on is figuring out how to make it so that only 4 players at a time can participate in a battle, I've seen various tutorials such as using Tables and Region3 that i thought would help me accomplish this but i'm having hard time trying to figure out how I should go about do this.

6 comments
Interesting...So Im not 100% following on how NumberValues work exactly so please forgive me, but is the idea that I have it so that for every person who joins, I have to have it so the game stores them inside of a NumberValue until it reaches 4?
Yes. Number values have a value inside of them which can be edited.
For example, you could do game.Workspace.NumberValue.Value = "1" and then the value in the number value would be able to be accessed at any time by any scripts
Okay so want to make sure i'm on the right track with this, if i were to write: part:MoveTo(Position1.Position2) and follow up with game.Workspace.BattleRoomMax.Value = "1", when the player warps to the battle room, the ' BattleRoomMax.Value = "1" ' line stores the player who warped into the value?
No. First off, you need to make a new number value for each battle. Secondly, you need to use 2 equal signs to change the value. Friend me on Discord at Raccoonyz#0001 if you want better help.
Nevermind, you don't need 2 equal signs