Using Teams to Move the SpawnPoints!

Hello, It is me, InquistorWasBanned again! I have two teams in my game, and I have a teleport button that teleports a player to the battlefield whenever they want to onClick. In the battlefield when they join there I want it to be able to split the two different teams to two different places inside of the battlefield to be organized.

Thanks!

1 Like

The spawn points can have team colors set and they have a settings called Neutral Note I may have spelled it wrong but it can control whether only the said team color can spawn there or anyone turn make that false and then set the team color to the color of the team you want to spawn there

1 Like

When you allocate a player to a team (which is colour based), you should have a corresponding SpawnLocation for each colour. All you need to ensure is when a player clicks to teleport to battle, you check the number of players on each team and try to balance them. They will automatically spawn at their corresponding team location.

1 Like

That’s the problem I want players to spawn in the spawn not on the team spawn. I know those features but I want the players to move to different places inside of my other map

That is easy you just need to check their team and teleport to the right spawn. Pseudocode example

if plr.team == team1 then
    teleport to spawn1.Position
else
    teleport to spawn2.Position
end

Okay do I need to define the teams first?

Yes, like this

local  team1 = "Really red" 
local team2 = "Dark Blue"

So it would know after I write the colors? Thanks