local F={}local u=script.Parent local A=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local l=TweenInfo.new(6,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)local I=0 local H=false function F.Pay()if I>0 then I=I+20 return end while H do wait(1)end I=20 openGate()while I>0 do wait(1)I=I-1 end closeGate()end local i=A:Create(u,l,{CFrame=u.CFrame*CFrame.new(0,36,0)})function openGate()u.Close:Play()wait(2)u.Open:Play()i:Play()wait(6)u.Close:Play()end local o=A:Create(u,l,{CFrame=u.CFrame})function closeGate()u.Close:Play()wait(2)u.Open:Play()o:Play()H=true wait(6)H=false u.Close:Play()end return F
-- Decompiled with the Synapse X Luau decompiler.

local v1 = {}
local l__Parent__2 = script.Parent
local l__TweenService__3 = game:GetService("TweenService")
local v4 = TweenInfo.new(6, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local u1 = 0
local u2 = false
function v1.Pay()
	if u1 > 0 then
		u1 = u1 + 20
		return
	end
	while u2 do
		wait(1)
	end
	u1 = 20
	openGate()
	while u1 > 0 do
		wait(1)
		u1 = u1 - 1
	end
	closeGate()
end
local u3 = l__TweenService__3:Create(l__Parent__2, v4, {
	CFrame = l__Parent__2.CFrame * CFrame.new(0, 36, 0),
})
function openGate()
	l__Parent__2.Close:Play()
	wait(2)
	l__Parent__2.Open:Play()
	u3:Play()
	wait(6)
	l__Parent__2.Close:Play()
end
local u4 = l__TweenService__3:Create(l__Parent__2, v4, {
	CFrame = l__Parent__2.CFrame,
})
function closeGate()
	l__Parent__2.Close:Play()
	wait(2)
	l__Parent__2.Open:Play()
	u4:Play()
	u2 = true
	wait(6)
	u2 = false
	l__Parent__2.Close:Play()
end
return v1
