How To Make NPC's have different teams

Hello, I would like to try and make a system where there’s 2 teams and after a while NPC’s from both teams would spawn and fight the opposing team, an example of this is in Field Of Battle where NPC’s would spawn and gradually be more stronger than the wave before. I’ve searched everywhere and couldn’t find anything, thanks!

1 Like

You can’t just ask how to make a whole entire game. Instead try making it yourself and if you have issues with your code ask for help.

Anyways, use folders to separate the teams, use a script for the waves.

Good luck, sorry for my rant, but more info/a script is appreciated.
:wink:

2 Likes

I’d love to help, but I want to advise you that this is a difficult task, especially in the Roblox engine. Pathfinding is extremely limited. If you’re going for rogue-lite, I’d say go with something along the lines of Brotato for your inspiration. The shooter does not have any obstacles, and the progression only involves a few tweaks in the equations.

Have you come right yet ?
I am also trying to get NPC’s as part of a Team, with limited success.
I have managed to change the NPC’s (for both teams) when they fall onto a part, which changes them to the programmed team.

From there I get them to move over a red part that they shouldn’t be allowed to go on.
So for example, A Red NPC shouldn’t be allowed to walk over a Blue part, and a Blue NPC shouldn’t be able to walk over a Red part.

It works fine for human players, as I would be a Blue team player, and I am kicked off Red parts, but strangely, not it the blue player is an NPC.

So the question I also have, is the NPC is really a Blue Team player, even though it changes his whole body to blue (telling me he converted to a team NPC).

Once I can get them to walk around & repelled off opposite colours, I’d be pretty happy too.

Try to use CollectionService or TagSystem for teams.

Will look it up … long learning curve here :smiley:
Thanks