Also, when you're checking the TeamColor of a team you have to use something like,
if Player.TeamColor == BrickColor.new("TeamColorHere") to check properly.
Additionally, the game didn't understand who "localp" is, I would suggest you read the article on loops and use game.Players:GetChildren() to get the players. |