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

How can I change someone's team depending on their username?

Asked by 9 years ago
I'm trying to make a personal minigame where if I join I'll be sorted into  a team. How can I do this?

1 answer

Log in to vote
0
Answered by 9 years ago
game.Players.PlayerAdded:connect(function(newplayer)
    if newplayer.Name == "COOLKENu" then
        newplayer.TeamColor = BrickColor.new("") -- Put team color in here
    end
end)
Ad

Answer this question