Hello, I am wondering if there is a way of limiting the Number of Players per class on a gamemode I am making.
Make a table for each class, with the keys being the class name, and one of two values being the max amount. When you assign a player to a class, add value_before+1 and check if it’s the first value == second (too many/enough)
Or you could just get the number of players as that job and deny them if it’s >= the max amount. i.e. player.GetAll and his subsequent player:GetJob function (if he’s made one.). Ideally you’d be using hooks.
Okay I will try it, thanks