Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Team = {}
- Team.__index = Team
- function Team.new(TeamName, Template)
- local NewTeam = setmetatable({}, Team)
- NewTeam.AtWarWith = false
- NewTeam.Name = TeamName
- NewTeam.MaxSoldiers = math.huge
- NewTeam.TemplateCharacter = game.ServerStorage.NPC or Template
- NewTeam.Soldiers = {}
- NewTeam.SpawnPad = false
- return NewTeam
- end
- function Team:AddSoldier(Soldier)
- table.insert(self.Soldiers, Soldier)
- end
- return Team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement