How to call auto assignable even though if they joined already

you always see this

if you go through the team objects property

i want to call this when my game starts

is there a way or not?

Why can’t you just do it from the property?

cause it just assigns them when they join and i want it to assign all the players for all of the teams when i call it

instead of doing if statements that are hard to do

You should create a function which loops through all the players and assigns them to each team one by one.

Hope this helps,
-Tom :slight_smile:

well that would help but it wouldn’t work for players who joined the game after the code is done

this is why i need the auto assign property to assign people when i call it

Why can’t you set the teams to Team.AutoAssignable = true when you run the function?

does it assign them when i set it tho?

that is the question

If you want to change all player’s teams, just do this:

for index, player in pairs(game:GetService("Players"):GetChildren()) do
player.TeamColor = BrickColor.new("") --inside there put the color of the team
end

its just gonna assign them in one team

but i want to assign them without coding an assigning system

If you want to assign all players to a team without coding then that’s not going to be possible.

then what is the auto assign property of team useful for?

As I’ve described above, when a player joins the game they will be automatically assigned to a team which has auto-assignable set to true. If you want to set that to false, player won’t be able to be assigned to that team when they join.

then how to do that then

set it to true but does it assign them tho?

i have been asking that for 1 hour and 30 minutes

and i need the answer

Okay. First, u need to chill.


AutoAssignable on

AutoAssignable will give each new player who joined, a random team out of the Teams that have been created.

eg.
Player1 joins > Gets put on Red Team
Player2 joins > Gets put on Blue Team

AutoAssignable was on so it balanced the teams above when players joined.


AutoAssignable off

If AutoAssignable is off, players who join the game will only be assigned one team. In other words, every player will be in one team.

eg.
Player1 joins > Gets put on Red Team
Player2 joins > Gets put on Red Team

AutoAssignable was off so it
did not balance the teams above when players joined.


Your Question Answer:

AutoAssignable will not assign players random teams if you turn it on inGame


Resources

Check this out:


Other

Anyone who thinks I’m wrong, please comment on this. Thanks!

Hope this helped!
-Discgolftaco231

1 Like

That’s not possible without coding