Create and add team to the player?!

So i need to create a team and set the player’s team. Maybe to do that random like to add player to team blue or team red idk. I need help for this as i just started learning lua and i’m a big noob. Thats why i need help :smiley: