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.
TeamColor
is a BrickColor, so set it to BrickColor.new(tcname)
.