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

How to use Team Spawners?

Basically, for a Roblox Military, I'd want to make a Team Spawn. So the people part of the Enlisted Team would spawn in a spawn where the others don't spawn. Also it'd not assign you automatically to that team with AutoAssignable, with Neutral and AllowChangeTeamOnTouch off. Is there a possible way to do this Scripting?

1 answer

You can use https://developer.roblox.com/api-reference/function/Player/LoadCharacter to cause them to load at a any valid SpawnLocation for the team they're on -- but note that the player can spawn onto Neutral SpawnLocations, so you should avoid having any marked Neutral if you don't want that behaviour. Thus, to allow people to spawn on a SpawnLocation when they join the game (rather than high up in the middle of the workspace), you'll want one team that has AutoAssignable set to true.

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