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

How do I select random players to join a team after some time?

Does anybody know how to select a few players and make them like terrorist or something? I really don't know how.

Maybe like?

while true do
wait(60)
Random.Players.Team = Team.new("Really red")
end

Well I don't know if that will work but if it doesn't please help.

1 answer

✓ Accepted answer

Okay it won't. But here you go

while true do -- LOOP
 wait(60) - waits 60 secounds
 players = game.Players:GetChildren() -- gets all players
 ChosenPlayer =players[math.random(1,#players)] -- Gets a random PLayer
 
ChosenPlayer.TeamColor = BrickColor.new("Really red")-- sets player team color to Really red
end

IF I HELP UPVOTE ME, IF YOU NEED HELP COMMENT BELOW

2 comments

0

Thanks :D!

0

Do you mind to upvote me so people can trust me more

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