How to handle players leaving in rounds system script

I am making a mm2 round system script. But, some players may leave during the script and will script have errors if those player instances are nil?
Also another question, when I am using for i,v to add players into a table but will my for i,v get errors if a player leaves?
What are the best solutions to those?
Thank you!

1 Like
  1. Listen to PlayerRemoving. If you have the player in a list, then remove it from the list in this listener. That’s all.
  2. No

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.