Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you make it so everyone spawns on one team even though there are multiple spawns?

Okay so for example is there anyway to make it so when you enter the game you always spawn on the red team but on death you spawn on the green team. Something like that. Also, I don't mean to sound like this is a request. Thanks if you can help.

2 answers

✓ Accepted answer

Unfortunately, it is a request, but I can help.

Just set all the teams but the red team's property to Not Auto Assignable.

And to change a person's team from red to green on death place this script in workspace or server script service;

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
c:WaitForChild("Humanoid").Died:connect(function()
p.TeamColor = BrickColor.new("Bright green") --Or what ever team color it is.
end)
end)
end)

1 comment

0

Thanks :)

Just switch their team to Green on death.

Humanoid Died Event in conjunction with CharacterAdded of Player or ChildAdded or DescendantAdded of Workspace.


Or, easier to code but messier (since the leaderboard will not be useful): switch a player's team to Green immediately after they spawn, so their next spawn will bring them their.

This discussion is preserved as it was. New answers, comments, and votes are closed.