-- Decompiled with the Synapse X Luau decompiler.

local v1 = script:FindFirstAncestor("MainUI");
local l__Bricks__2 = game:GetService("ReplicatedStorage"):WaitForChild("Bricks");
local l__TweenService__1 = game:GetService("TweenService");
return function(p1)
	if not workspace:FindFirstChild("SeekMoving", true) then
		warn("cant find elevator!");
		return;
	end;
	p1 = require(game.Players.LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game)
	local l__PrimaryPart__3 = workspace:FindFirstChild("SeekMoving", true).PrimaryPart;
	p1.stopcam = true;
	p1.freemouse = true;
	p1.hideplayers = -1;
	p1.update();
	workspace:FindFirstChild("SeekMoving",true).SeekRig.Root.CFrame = workspace.CurrentRooms.Seek.TpSeek.CFrame

	local l__CamPos1__4 = l__PrimaryPart__3:FindFirstChild("CamPos1", true);
	local l__CamPos2__5 = l__PrimaryPart__3:FindFirstChild("CamPos2", true);
	local l__CFrame__6 = p1.cam.CFrame;
	local v7 = tick() + 1;

	local l__FieldOfView__8 = p1.cam.FieldOfView;
	for v9 = 1, 100000 do
		task.wait();
		local v10 = l__TweenService__1:GetValue((1 - math.abs(tick() - v7)) / 1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut);
		if not (tick() <= v7) then
			break;
		end;
		p1.cam.CFrame = l__CFrame__6:Lerp(l__CamPos1__4.WorldCFrame, v10) * p1.csgo;
		p1.cam.FieldOfView = l__FieldOfView__8 + (p1.fovspring - l__FieldOfView__8) * v10;
	end;
	local v11 = CFrame.new(0, 0, 0);
	local v12 = tick() + 2;
	local l__CFrame__13 = p1.cam.CFrame;
	local l__WorldCFrame__14 = l__PrimaryPart__3:FindFirstChild("CamPos2", true).WorldCFrame;
	l__TweenService__1:Create(p1.cam, TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {
		FieldOfView = 30
	}):Play();
	p1.camShaker:ShakeOnce(8, 0.2, 0.5, 100);
	local l__WorldCFrame__15 = l__CamPos1__4.WorldCFrame;
	local l__WorldCFrame__16 = l__CamPos2__5.WorldCFrame;
	local v17 = tick() + 6.25;
	l__TweenService__1:Create(p1.cam, TweenInfo.new(6, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
		FieldOfView = 60
	}):Play();
	for v18 = 1, 100000 do
		task.wait();
		if not (tick() <= v17) then
			break;
		end;
		p1.cam.CFrame = l__CamPos1__4.WorldCFrame:Lerp(l__CamPos2__5.WorldCFrame, (l__TweenService__1:GetValue((6.25 - math.abs(tick() - v17)) / 6.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut))) * p1.csgo;
	end;
	local v19, v20, v21 = CFrame.new(Vector3.new(0, 0, 0), l__PrimaryPart__3.CFrame.LookVector):ToOrientation();
	if math.abs(p1.ax - math.deg(v20)) > 180 then
		p1.ax_t = p1.ax_t - 360;
	end;
	p1.ax_t = math.deg(v20);
	local l__CFrame__22 = p1.cam.CFrame;

	local v23 = tick() + 1;
	local l__FieldOfView__24 = p1.cam.FieldOfView;
	for v25 = 1, 100000 do
		task.wait();
		local v26 = l__TweenService__1:GetValue((1 - math.abs(tick() - v23)) / 1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut);
		if not (tick() <= v23) then
			break;
		end;
		p1.cam.CFrame = l__CFrame__22:Lerp(p1.basecamcf, v26) * p1.csgo;

		p1.cam.FieldOfView = l__FieldOfView__24 + (p1.fovspring - l__FieldOfView__24) * v26;
	end;
	p1.stopcam = false;
	p1.freemouse = false;
	p1.hideplayers = 1;
	p1.update();
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.CurrentRooms.Seek.seektrigger.CFrame
end;