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

Changing team if your "x" player, how can i do it?

So, i have a game where there are some teams, Which ill call here "Team1", "Team2" and "Team3".

So, You're auto assigned to "Team1", And you cant be auto assigned to Team2 nor Team3, And i want a script that if your a player (for example), Named "nutt394", you will be changed to "Team2".

How can i do it?

1 answer

game.Players.PlayerAdded:connect(function(plr)
if plr.Name = "nutt394" then
plr.Team = game.Teams.Team2
end
end)

1 comment

0

DId It Worked?

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