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

How to teleport teams after intermission?

I have been watching every single tutorial known to man, I have tried every single thing and/or way. I have even watched ALVINBLOX's tutorials. But i cannot get over this. I have been in the making of a horror game and i wanted to teleport two teams (One team with the survivors and the other team with the killer) after the intermission has ended and i would like to teleport both of the teams back to the lobby once the round has ended. May anyone help please? I will be very thankful.

1 answer

✓ Accepted answer

Well, here's how I would go about doing it:

for i,v in pairs(game.Players:GetChildren()) do
	if v.Team == "Survivors" or v.Team == "Killer" then -- This checks to see if their team is "Survivors" or "Killer". (You can change the team names here to what the actual names are)
		v.Character.Torso.CFrame = game.TeleportPart.CFrame -- Replace game.TeleportPart with the location of the brick you're teleporting the players to.
	end
end

Hope I helped! :)

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