I already have two teams, and team specific weapons, but I wanna add sub categories and sub weapons into the teams. So far, the Undead get daggers, while the Kingdom get swords and a crossbow, but I want to have different types of undead. Like, undead ghosts will get a speed boost item, and undead mage will get a summoning staff. How would I script this?
Well, how are you going to determine what kind of 'undead' are they? You could either put an IntValue in their Player, or Character, with the value that has the type of 'undead' they are. Then, in your game script, have it use the generic for loop to go through all of the Player's characters, and grab the value of 'Undead'. From that value, have it distribute weapons. Since you didn't provide proof that you've tried this on your own, that's the best answer I can give you. Hope I helped!