-- Decompiled with the Synapse X Luau decompiler.


local l__LocalPlayer__1 = game:GetService("Players").LocalPlayer;
local l__Character__2 = game:GetService("Players").LocalPlayer.Character;
hrp = l__Character__2:WaitForChild("HumanoidRootPart");
hp2 = Instance.new("Part");
hp2.Name = "Door";
hp2.Size = Vector3.new(1.5, 5.26, 1.21);
hp2.CanCollide = false;
hp2.Transparency = 1;
hp2.Parent = l__Character__2;
local v3 = Instance.new("Weld");
v3.Parent = hp2;
v3.Part0 = hp2;
v3.Part1 = l__Character__2.HumanoidRootPart;
v3.C0 = CFrame.new(0, 0.5, 0);
ts = game:GetService("TweenService");
ti2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0);
hp2.Touched:connect(function(p1)
	if p1.Name == "Trigger" and p1:FindFirstChild("Open") == nil and l__Character__2.Humanoid.Health >= 0 then
		local v4 = Instance.new("BoolValue", p1);
		local v5 = script.DoorO:Clone();
		v5.Parent = p1;
		v5:Play();
		game.Debris:AddItem(v5, 3);
		v4.Name = "Open";
		local l__d1__6 = p1.Parent.d1;
		local l__d2__7 = p1.Parent.d2;
		l__d1__6.CanCollide = false;
		l__d2__7.CanCollide = false;
		local v8 = ts:Create(l__d1__6, ti2, {
			CFrame = l__d1__6.CFrame + Vector3.new(0, 15, 0)
		});
		ts:Create(l__d2__7, ti2, {
			CFrame = l__d2__7.CFrame + Vector3.new(0, 15, 0)
		}):Play();
		v8:Play();
		wait(3);
		local v9 = script.DoorC:Clone();
		v9.Parent = p1;
		v9:Play();
		game.Debris:AddItem(v9, 3);
		local v10 = ts:Create(l__d2__7, ti2, {
			CFrame = p1.Parent.d2.CFrame
		});
		ts:Create(l__d1__6, ti2, {
			CFrame = p1.Parent.d1.CFrame
		}):Play();
		v10:Play();
		wait(1.5);
		l__d1__6.CanCollide = true;
		l__d2__7.CanCollide = true;
		game.Debris:AddItem(v4, 0);
	end;
end);
