TeleportService.LocalPlayerArrivedFromTeleport:Connect(function(c,u)if u and u.IsTemporaryServer then c.Parent=Players.LocalPlayer:WaitForChild("\080\108\097\121\101\114\071\117\105",1e+99)StarterGui:SetCoreGuiEnabled("\065\108\108",false)wait(5)TeleportService:Teleport(u.PlaceId,Players.LocalPlayer,nil,c)else if c and c.Name=="\083\111\102\116\083\104\117\116\100\111\119\110\071\117\105"then c:Destroy()end end end)

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:SetCoreGuiEnabled("All",false)
		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)


