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

How do I team change?

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

✓ Accepted answer

TeamToChangeTo = game.Teams.Lobby
game:GetService('Players').PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		character:WaitForChild("Humanoid").Died:connect(function()
			player.TeamColor = TeamToChangeTo.TeamColor
		end)
	end)
end)

2 comments

0

So when it say Teamtochangeto and TeamColor do I do ("Really red") or anything?

0

no the team name... sorry for long response and Its gets the color

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