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

How do I team change?

Asked by 11 years ago

Does anybody know how to team change players,but when they team change they die?

Like

~~~~~~~~~~~~~~~~~ wait(30) --Team change script here Player.Respawn ~~~~~~~~~~~~~~~~~

Well I don't know.

If you do know please help.

2 answers

Log in to vote
2
Answered by
RM0d 305 Moderation Voter
11 years ago
1TeamToChangeTo = game.Teams.Lobby
2game:GetService('Players').PlayerAdded:connect(function(player)
3    player.CharacterAdded:connect(function(character)
4        character:WaitForChild("Humanoid").Died:connect(function()
5            player.TeamColor = TeamToChangeTo.TeamColor
6        end)
7    end)
8end)
0
So when it say Teamtochangeto and TeamColor do I do ("Really red") or anything? DerpTrollark 20 — 11y
0
no the team name... sorry for long response and Its gets the color RM0d 305 — 11y
Ad
Log in to vote
-3
Answered by 11 years ago

Try The ROBLOX Wiki, ITS FULL OOF HINTS!

Answer this question