I understand this is not a website for asking people to write you a script from scratch but this is a question ive been wondering for a long time how can I make a Ai identify players on a team? I just cant seem to make a script that works
if game.Players:GetPlayerFromCharacter(character).TeamColor == AI.ColorNotToAttack.Value then --dont attack else --attack end
You would need if statements and a value in the AI to know which team not to attack