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 use the TeamColor variable correctly?

I'm trying to make a line that says something close to...

if player.TeamColor == "Bright red" then

The script isn't working. Is there a way I can make it check to see if the player is in the team specified?

1 answer

✓ Accepted answer

hello, EpicExcelsior!

The correct usage of TeamColor is with BrickColor:

if player.TeamColor == BrickColor.new("Bright red") then
	--Your code here
end

2 comments

0

Thank you so much! It worked!!

0

Anything that is a Brickcolor value is always with BrickColor.new

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