if game.VIPServerId~=""and game.VIPServerOwnerId==0 then warn("\066\111\111\116\105\110\103 \083\101\114\118\101\114 \033")local y=30 Players.PlayerAdded:connect(function(C)wait(y)y=y/2 TeleportService:Teleport(game.PlaceId,C)end)for C,e in pairs(Players:GetPlayers())do TeleportService:Teleport(game.PlaceId,e)wait(y)y=y/2 end else game:BindToClose(function()local y if#Players:GetPlayers()==0 then return end if(game:GetService("\082\117\110\083\101\114\118\105\099\101")):IsStudio()then return end for y,C in pairs(game.Players:GetChildren())do AddUI(C)end y=Players.PlayerAdded:connect(function(y)wait(1)AddUI(y)end)wait(15)y:Disconnect()local C=TeleportService:ReserveServer(game.PlaceId)for y,e in pairs(Players:GetPlayers())do TeleportService:TeleportToPrivateServer(game.PlaceId,C,{e})end Players.PlayerAdded:connect(function(y)TeleportService:TeleportToPrivateServer(game.PlaceId,C,{y})end)while#Players:GetPlayers()>0 do wait(1)end end)end
--[[ TELEPORT SERVICE ]]
--

if game.VIPServerId ~= "" and game.VIPServerOwnerId == 0 then
	warn("Booting Server !")

	local waitTime = 30

	Players.PlayerAdded:connect(function(player)
		wait(waitTime)
		waitTime = waitTime / 2
		TeleportService:Teleport(game.PlaceId, player)
	end)

	for _, player in pairs(Players:GetPlayers()) do
		TeleportService:Teleport(game.PlaceId, player)
		wait(waitTime)
		waitTime = waitTime / 2
	end
else
	game:BindToClose(function()
		local con

		if #Players:GetPlayers() == 0 then
			return
		end

		if game:GetService("RunService"):IsStudio() then
			return
		end

		for i, v in pairs(game.Players:GetChildren()) do
			AddUI(v)
		end

		con = Players.PlayerAdded:connect(function(v)
			wait(1)
			AddUI(v)
		end)

		wait(15)

		con:Disconnect()

		local reservedServerCode = TeleportService:ReserveServer(game.PlaceId)

		for _, player in pairs(Players:GetPlayers()) do
			TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, { player })
		end
		Players.PlayerAdded:connect(function(player)
			TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, { player })
		end)
		while #Players:GetPlayers() > 0 do
			wait(1)
		end
	end)
end
