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

How can I change someone's team depending on their username?

I'm trying to make a personal minigame where if I join I'll be sorted into  a team. How can I do this?

1 answer

game.Players.PlayerAdded:connect(function(newplayer)
	if newplayer.Name == "COOLKENu" then
		newplayer.TeamColor = BrickColor.new("") -- Put team color in here
	end
end)

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