I know how to put players into teams but I cant put humanoids/NPCs into teams, so How can I give a NPC a team code (team code or brickcolorvalue) so it only attacks players or NPCs with a different color code or team code? Basically if the NPC has the the color code red (brickcolorvalue red) it will not attack NPCs with the same brickcolorvalue and players on the same colour team otherwise the NPC will attack you.

You may ask me to show the attempt but I am trash at scripting I cant write complex scripts, I only know some of the basics :/

1 comment

0

If you can't even provide a script or tell us any attempts you have made then how can we expect you to understand any answers we give you? Learn ALL of the basics rather than just copying and pasting codes that people will give you.