So i’m trying to make an intermission system where:
- At least 2 players need to be ‘ready’ for the intermission to start
- The intermission cancels if there is only 1 player ready inbetween the countdown/map selecting/mode selecting.
I’ve pretty much scripted it, and it works fine. Only thing is that it’s 250 lines, which for a simple intermission system is alot. It’s also very inefficient. There’s a for loop pretty much everywhere where it checks how many players have ‘ready’, and some other junk.
So i have a plan. Instead of having these for loops everywhere, which clog everything up, i’ll make it check how many players have the value ‘ready’ everytime a player presses ‘ready’ (with a remote event).
However, i don’t know how to implement it in the system so that is passes on a value, while keeping the criteria i’ve listed above