To get teleported to an other place you have to wait until 10 or more players join the game... if the 10 players join the game... add a 2 minutes waiting until get into the other place ( where the game is at ) so on those 2 minutes more players can join.

Script:

local TeleportService = game:GetService("TeleportService")
local level1Id = 1839211325 -- starting place
local level2Id = 1939050771 -- game

if < 10 and > 100 #_G.gameplayers
	script:WaitForChild(120secsuntilbegin).Visible = true -- frame that says 120 second until the game begins
	wait(120) then
	script:WaitForChild(120secsintilbegin).Visible = false
	
	local player = game.Players
	if player then 
		TeleportService:teleport(player, level2 )
	end)
end

2 comments

1

We are not a request website! Ask for someone to write your code for you somewhere else.

0

Scripting helpers is a site used to help you with scripting issues and questions, it is not a "Hey can you write the code for me website".