Here is my code, no errors it just doesn't work.
while true do
wait(5)
t = game.Teams:GetChildren() --getting all teams
for i,v in ipairs(t) do
if v.Name ~= 'Civilian' then --Don't remove the Civ team
local teamNumber = v:GetPlayers() --Getting players in the team
if teamNumber == 0 then --make sure no one is on the team
v.Parent = game.ServerScriptService.Teams -- move it back into the script
end
end
end
end

1 comment
Thanks for the help :)