How do I make a player respawn after changing teams

Hi, so I want to make a UI where if the player is in a certain group and they click the button it changes their team so I have that part done already. I also want the player to respawn after changing teams, although I have the script to change teams done I am unsure how to make them respawn, Solution?

https://developer.roblox.com/en-us/api-reference/function/Player/LoadCharacter

This? It will force the character of the player to reset/respawn.

1 Like

I don’t think this is working but I’m trying different things.

Sadly it didn’t work. 30 letters

Create a SpawnLocation and place the TeamColor of the corresponding team, then in the chosen player define his team by the corresponding one and use LoadCharacter as @Quwanterz said, also use RespawnLocation if there is more than one SpawnLocation of that team.

More information: Teams | Roblox Creator Documentation

How are you using LoadCharacter()? Are you doing it on client or server, as it cannot be called on client.