Team Assignment Script
Customize your variables, then fill in the blanks!
Your Custom Settings
Server Script (ServerScriptService)
This script assigns players to teams and spawns them at team positions. Create folders with your team names in workspace containing numbered position parts.
game..:Connect(function(player)
player.:Connect(function(character)
if #game.Teams.Reds:() > #game.Teams.Blues:GetPlayers() then
player. = game.Teams.Blues
character..CFrame = workspace.Blues:GetChildren()[math.random(1,3)].CFrame
else
player.Team = game.Teams.Reds
character.HumanoidRootPart. = workspace.Reds:GetChildren()[math.(1,3)].CFrame
end
end)
end)
