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

How to check players team color?

player = game.Players.LocalPlayer
if player.TeamColor.BrickColor.Name == ("White") then
	
	print ("Working")
	
	
end

Why is this not working? Thanks.

2 answers

You do not need the .BrickColor after .TeamColor because TeamColor is already a BrickColor.

1 comment

1

Thanks!

Don't use the () around "White". Those () are for math.

But yeah what the top reply said.

You could also check the team.

if player.Team == game:GetService("Teams").TeamNameHere then
    -- Do code
end

1 comment

0

Thanks for the alternative!

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