for example, in my game when multiple people join they all spawn on different teams and not the first level like i want them to. all the spawns are not neutral and are change team when touched. can somebody please help?
here is how you change the team.
player.Team = *team*
if you want to change it to a random team when they join the game, do this:
local Teams = game:WaitForChild("Teams") local TC = Teams:GetChildren() game.Players.PlayerAdded:Connect(function(player) player.Team = TC[math.random(1, #TC)] end
and uhhhh yeah! I hope that helps. If you need more help on this topic, feel free to message me on Roblox or dm me @BlobMaster#8156.
Edit log: Changed "." to "," in code block 2, line 4
Just go to the team properties by clicking the team and clicking the properties tab. Then you make it so that all teams except the one you want have random choosing disabled.