Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a random player join a team? [UNANSWERED]

I'm making a game where this is pretty much the most important part. So, how would I make a random player join a specific team?

1 answer

Something like this;

pl = game.Players:GetPlayers()
rp = pl[math.random(#pl)]
rp.TeamColor = BrickColor.new("Really black")

rp = Random player.

4 comments

0

Okay, but how do I make them swap to another team?

0

Thanks, that helps ALOT ;3

0

Changing the TeamColor should automatically change them to the other team. Where it says BrickColor.new("Really black"); put the exact name of the Team's color into the quotations.

0

Hmm, I just tested it, and it's not working, that's exactly what should work? (other than your previous comment)

This discussion is preserved as it was. New answers, comments, and votes are closed.