What does require less resources?

Hello everyone, I am working on the Level system, where user gets 1 exp every second.

The question I have is what’s better:

  1. Make 1 cycle where I loop through every player and give exp
  2. Make cycle for each player where I give them exp

Thank you

Please provide your code in the code review category. If you need help with coding, move this to #help-and-feedback:scripting-support.

To answer your question, the first option is better. Reducing thread counts will significantly reduce performance issues throughout the server.