if game.VIPServerId~=""and game.VIPServerOwnerId==0 then warn("\066\111\111\116\105\110\103 \083\101\114\118\101\114 \033")local u=20 Players.PlayerAdded:connect(function(t)wait(u)u=u/2 TeleportService:Teleport(game.PlaceId,t)end)for t,P in pairs(Players:GetPlayers())do TeleportService:Teleport(game.PlaceId,P)wait(u)u=u/2 end else game:BindToClose(function()local u 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 u,t in pairs(game.Players:GetChildren())do AddUI(t)end u=Players.PlayerAdded:connect(function(u)wait(1)AddUI(u)end)wait(15)u:Disconnect()local t=TeleportService:ReserveServer(game.PlaceId)for u,P in pairs(Players:GetPlayers())do TeleportService:TeleportToPrivateServer(game.PlaceId,t,{P})end Players.PlayerAdded:connect(function(u)TeleportService:TeleportToPrivateServer(game.PlaceId,t,{u})end)while#Players:GetPlayers()>0 do wait(1)end end)end
--

if (game.VIPServerId ~= "" and game.VIPServerOwnerId == 0) then

	warn("Booting Server !")

	local waitTime = 20

	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
