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

How to teleport players into a Round Simulation?

After 2 players join I need a round to start. Rounds last 180 seconds. How would I teleport players into the map?

2 answers

This would teleport all players to a specific location:

location = CFrame.new(0, 0, 0) -- the position to teleport players to
players = game:GetService("Players")

for i, v in pairs(players:GetChildren()) do
	if v.Character() ~= nil then
		char = v.Character
		if char:FindFirstChild("Torso") ~= nil then
			v.Torso.Anchored = true
			wait()
			v.Torso.CFrame = location
			wait()
			v.Torso.Anchored = false
		end
	end
end

What do you mean by 0,0,0 could I just add a small invisible brick and players would randomly be teleport to it. What is the script for that>?

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