Advertisement
Alexplazz

Untitled

Jan 7th, 2024
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local Team = {}
  2. Team.__index = Team
  3.  
  4. function Team.new(TeamName, Template)
  5.     local NewTeam = setmetatable({}, Team)
  6.     NewTeam.AtWarWith = false
  7.     NewTeam.Name = TeamName
  8.     NewTeam.MaxSoldiers = math.huge
  9.     NewTeam.TemplateCharacter = game.ServerStorage.NPC or Template
  10.     NewTeam.Soldiers = {}
  11.     NewTeam.SpawnPad = false
  12.     return NewTeam
  13. end
  14.  
  15. function Team:AddSoldier(Soldier)
  16.     table.insert(self.Soldiers, Soldier)
  17. end
  18.  
  19.  
  20. return Team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement