Hello I hope you have a Good day....So I am making a game on roblox that contain four team one player for each team like one player in red team and one player in blue team,,,etc....I don't want the players to choose their team i want them to be in a random team selection.....if anyone can help me i would appreciate that I've been looking everywhere for help....I hope you guys would help me....Thank you
game.Players.PlayerAdded:Connect(function(plr) local teams = game:GetService("Teams"):GetChildren() plr.Team = teams[math.random(1,#teams)] end)