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

How do I change teams?

Recreating an ancient game, need some assistance with the following script.

local tcName = "Really blue" --TeamColor name
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function()
	player.TeamColor = tcName
end)

Trying to get it so that the tcName variable would set the players TeamColor to the following string (The TeamColor), but the output says that the Teamcolor value is invalid when trying.

1 answer

TeamColor is a BrickColor, so set it to BrickColor.new(tcname).

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