Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use Team Spawners?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question