Jump to content

Random team selection


Recommended Posts

  • Moderators

Random selection is required when there are equal players in each team.

Try to replace:

local teamName = theTeams[1] 

To

local teamName = theTeams[#theTeams] 

It seems it was placing players in the largest team instead of the smallest team.

If you say it doesn't work, you should tell me WHAT exactly. This is really getting annoying.

If you did debug your code correctly(not just the console), you would have figured this out on your own.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...