-- Configuration local TEAM_NAMES = {"Alpha", "Bravo"} local SQUAD_SIZE = 4 -- Classic Fireteam size Onlyfans 23 11 25 Hotyogawife Young Plumber Fuc Better Apr 2026
Players.PlayerRemoving:Connect(function(player) -- Clean up player from squad data (basic implementation) for teamName, squads in pairs(SquadData) do for i, squad in ipairs(squads) do for j, member in ipairs(squad.members) do if member == player then table.remove(squad.members, j) break end end end end end) Firmware | Asus Drw-24d5mt
-- Function to assign a player to a fireteam local function assignToSquad(player) local teamName = player.Team.Name -- Initialize team table if missing if not SquadData[teamName] then SquadData[teamName] = {} end -- Find an existing squad with space local assignedSquad = nil for _, squad in ipairs(SquadData[teamName]) do if #squad.members < SQUAD_SIZE then assignedSquad = squad break end end -- If no space, create a new squad if not assignedSquad then assignedSquad = {members = {}, id = #SquadData[teamName] + 1} table.insert(SquadData[teamName], assignedSquad) end -- Add player to squad table.insert(assignedSquad.members, player) player:SetAttribute("SquadID", assignedSquad.id) print(string.format("%s assigned to %s - Fireteam %d", player.Name, teamName, assignedSquad.id)) end