Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use the TeamColor variable correctly?

Asked by 6 years ago

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

Log in to vote
1
Answered by
cailir 284 Moderation Voter
6 years ago

hello, EpicExcelsior!

The correct usage of TeamColor is with BrickColor:

if player.TeamColor == BrickColor.new("Bright red") then
    --Your code here
end
0
Thank you so much! It worked!! EpicExcelsior 8 — 6y
0
Anything that is a Brickcolor value is always with BrickColor.new User#19524 175 — 6y
Ad

Answer this question