local a=script.Parent.Pivot local s=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local z=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",script.Parent.Lid)z.MaxActivationDistance=5 local i=false local O=false z.MouseClick:Connect(function()if not i then i=true local z if not O then z=s:Create(a,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame=a.CFrame*CFrame.Angles(math.rad(160),0,0)})else z=s:Create(a,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame=a.CFrame*CFrame.Angles(-math.rad(160),0,0)})end z.Completed:Connect(function()O=not O i=false end)z:Play()end end)


local pivot = script.Parent.Pivot
local TS = game:GetService("TweenService")
local CD = Instance.new("ClickDetector",script.Parent.Lid)
CD.MaxActivationDistance = 5

local deb = false
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(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame = pivot.CFrame*CFrame.Angles(math.rad(160),0,0)})
		else
			anim = TS:Create(pivot,TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),{CFrame = pivot.CFrame*CFrame.Angles(-math.rad(160),0,0)})
		end
		anim.Completed:Connect(function()
			toggle = not toggle
			deb = false
		end)
		anim:Play()
	end
end)
