Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a script that puts all the Players into one Team?

Asked by 4 years ago

I need a script that puts all the players in a Server into a specific team! Please Help

1 answer

Log in to vote
1
Answered by
p0vd 207 Moderation Voter
4 years ago

Make sure that this a Server script.

for _,v in pairs(game.Players:GetPlayers()) do
    v.Team = game.Teams["ENTERTEAMNAMEHERE"]
end
Ad

Answer this question