I'm trying to teleport two different teams to opposite areas, I have the teleport code I just need for them to be team specific. I've looked at other people's code and they say to use ( if ~~~~~~~~~~~~~~~~~ Player.Team.Name == "TeamIWannaTP" then --Teleport code end else
and so on. I want the code to be able to run in a server script, I think that's the only way to teleport anyways. Right? Idk I'm kinda new to scripting so if anyone could help me out.

1 comment
if you're working with the team service, you know you can create 2 new team instances, create two spawn points and then assign the team to the spawn point, they'll automatically spawn there