-- Decompiled with the Synapse X Luau decompiler.


return function(p1)
	local u1 = nil;
	local u2 = nil;
	local u3 = nil;
	local u4 = nil;
	if not pcall(function()
		u1 = p1.Left;
		u2 = p1.Right;
		u3 = u1:FindFirstChildOfClass("UIGradient");
		u4 = u2:FindFirstChildOfClass("UIGradient");
	end) or p1:GetAttribute("Progress") then
		return;
	end;
	p1:SetAttribute("Progress", 1);
	local function u5(p2)
		p2 = math.clamp(p2, 0, 1);
		if p1 and u3 and u4 then
			u4.Rotation = math.clamp(p2 * 2, 0, 1) * 180;
			u3.Rotation = 180 + math.clamp((p2 - 0.5) * 2, 0, 1) * 180;
			u4.Enabled = p2 < 0.5;
			u3.Enabled = p2 < 1;
			p1.Visible = p2 > 0;
		end;
	end;
	return p1:GetAttributeChangedSignal("Progress"):Connect(function()
		u5(p1:GetAttribute("Progress"));
	end);
end;
