-- 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;
