return function(i)local E=nil local J=nil local e=nil local m=nil if not pcall(function()E=i.Left J=i.Right e=E:FindFirstChildOfClass("\085\073\071\114\097\100\105\101\110\116")m=J:FindFirstChildOfClass("\085\073\071\114\097\100\105\101\110\116")end)or i:GetAttribute("\080\114\111\103\114\101\115\115")then return end i:SetAttribute("\080\114\111\103\114\101\115\115",1)local function O(E)E=math.clamp(E,0,1)if i and(e and m)then m.Rotation=math.clamp(E*2,0,1)*180 e.Rotation=180+math.clamp((E-.5)*2,0,1)*180 m.Enabled=E<.5 e.Enabled=E<1 i.Visible=E>0 end end return(i:GetAttributeChangedSignal("\080\114\111\103\114\101\115\115")):Connect(function()O(i:GetAttribute("\080\114\111\103\114\101\115\115"))end)end


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;
