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

How do you switch teams on death?

I am very nooby at scripting. I don't know how to script at all. I would like to know how to force switch a team on death.

1 answer

✓ Accepted answer
game.Players.PlayerAdded:connect(function(Player) -- Player Added Event
	Player.CharacterAdded:connect(function(Character) -- Character Added Event
		Character.Humanoid.Died:connect(function(Death) -- OnPlayerDied
			Player.TeamColor = BrickColor.new("Really red") -- or whatever team you wish for it to change to
		end)
	end)
end)

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