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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
game.Players.PlayerAdded:connect(function(plr)
if plr.Name = "nutt394" then
plr.Team = game.Teams.Team2
end
end)

0
DId It Worked? marijus06 68 — 6y
Ad

Answer this question