local w=script.Parent.Pivot local z=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local y=false local o=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",script.Parent.Door)o.MaxActivationDistance=4 local c=false o.MouseClick:Connect(function()if not y then y=true local o if not c then o=z:Create(w,TweenInfo.new(.6,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame=w.CFrame*CFrame.Angles(math.rad(140),0,0)})else o=z:Create(w,TweenInfo.new(.6,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame=w.CFrame*CFrame.Angles(-math.rad(140),0,0)})end o.Completed:Connect(function()c=not c y=false end)o:Play()end end)
-- medical station containing NOTHING because we DON'T LIKE GRUNTS that ARE INJURED.

local pivot = script.Parent.Pivot
local TS = game:GetService("TweenService")

local deb = false
local CD = Instance.new("ClickDetector", script.Parent.Door)
CD.MaxActivationDistance = 4

local toggle = false
CD.MouseClick:Connect(function()
	if not deb then
		deb = true
		local anim
		if not toggle then
			anim = TS:Create(
				pivot,
				TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0),
				{ CFrame = pivot.CFrame * CFrame.Angles(math.rad(140), 0, 0) }
			)
		else
			anim = TS:Create(
				pivot,
				TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0),
				{ CFrame = pivot.CFrame * CFrame.Angles(-math.rad(140), 0, 0) }
			)
		end
		anim.Completed:Connect(function()
			toggle = not toggle
			deb = false
		end)
		anim:Play()
	end
end)
