TeleportService.LocalPlayerArrivedFromTeleport:Connect(function(l,y)if y and y.IsTemporaryServer then l.Parent=Players.LocalPlayer:WaitForChild("\080\108\097\121\101\114\071\117\105",1e+99)StarterGui:SetCore("\084\111\112\098\097\114\069\110\097\098\108\101\100",false)StarterGui:SetCoreGuiEnabled("\065\108\108",false)task.wait(5)TeleportService:Teleport(y.PlaceId,Players.LocalPlayer,nil,l)else if l and l.Name=="\083\111\102\116\083\104\117\116\100\111\119\110\071\117\105"then l:Destroy()end end end)
--Set up teleport arrival.
TeleportService.LocalPlayerArrivedFromTeleport:Connect(function(Gui, Data)
	if Data and Data.IsTemporaryServer then
		--If it is a temporary server, keep showing the Gui, wait, then teleport back.
		Gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui", 10 ^ 99)
		StarterGui:SetCore("TopbarEnabled", false)
		StarterGui:SetCoreGuiEnabled("All", false)
		task.wait(5)
		TeleportService:Teleport(Data.PlaceId, Players.LocalPlayer, nil, Gui)
	else
		--If the player is arriving back from a temporary server, remove the Gui.
		if Gui and Gui.Name == "SoftShutdownGui" then
			Gui:Destroy()
		end
	end
end)
