How do you make a part that changes your team?

I’m making a game, and I want to know how to make a part that will change your team to another team, not being a spawn point, how would I do this?

1 Like

You can connect a Touched event to a BasePart, then just use your TeamService knowledge to switch teams, since I never study about TeamService yet.

1 Like

Do you mean something like a touch pad that allow players to switch team?

In this case:

  • BasePart.Touched as input
  • Using the argument that is returned from the event to find the player, e.g. Players:GetPlayerFromCharacter(), remember the argument is another BasePart or equivalent subclasses and you’ll have to find the character
  • Change the player’s team as accordingly
1 Like

Yes, I mean a touch pad that allows players to switch teams.

SpawnLocatons actually have a property that allows team change on touch! Check it out!

2 Likes

You can add a spawn location, find in the properties “AllowChangeTeamOnTouch” and “TeamColor”.