local vCharacter = Tool.Parent local vPlayer = game.Players:playerFromCharacter(vCharacter) if vPlayer.TeamColor == "Bright blue" then print(vPlayer.TeamColor) end
Why wont this print, i have checked it over and over. It should work and print "Bright blue" but it dosent. Please help
The Property thing TeamColor isn't a String Value, It's a BrickColor. You've been calling it as if it was a String. It should be
if vPlayer.TeamColor == BrickColor.new("Bright blue") then
Making the Overall Script...
local vCharacter = Tool.Parent local vPlayer = game.Players:playerFromCharacter(vCharacter) if vPlayer.TeamColor == BrickColor.new("Bright blue") then print(vPlayer.TeamColor) end
Well, it should be...
Hope this helps, and actually works...