Questions about creating a lobby type of system

Attempting to create a lobby system with no prior knowledge on how to so im here to ask some questions

Updating each lobby real time

Not entirely sure about how to go with this althought i have a faint idea and am wondering if its good to use

So basically i want a lobbys playercount to be updated all the time
(when a player joins / leaves that lobby)

so my idea is using a module script and setting up a module where i can use courutines to create loops for each lobby until they no longer exist to update the player count of that lobby

(Extra question, not needed)
If i do go about using the module method, should i set up a metatable thingy in it to use : in the module or should i just keep it to . and send the stuff in the params?

Holding the lobbys

basically wondering how people normally hold lobbys?

my first idea was using a folder system where creating a new lobby would make a folder, and use values to store what players are in said lobby, the lobby information (difficulty, max player amount, ect)

But then i thought i could also try to set up a system to use tables to hold the lobbys.
although this would be way harder to use with question 1’s module scripts and stuff

So wondering if i should use one of those 2 methods or if theres a better one

Exploit prevention

not really much here besides asking for your input

while making this system, what areas should i try to put more work into making exploit proof

(like creating multiple rooms, joining passworded rooms without the password, or anything else you can think of)

I dont need you to answer these all at once, any thing that can point me in the right direction helps

:smiley: :+1: