return function(s)local Z=nil local e=nil local W=nil local X=nil if not pcall(function()Z=s.Left e=s.Right W=Z:FindFirstChildOfClass("\085\073\071\114\097\100\105\101\110\116")X=e:FindFirstChildOfClass("\085\073\071\114\097\100\105\101\110\116")end)or s:GetAttribute("\080\114\111\103\114\101\115\115")then return end s:SetAttribute("\080\114\111\103\114\101\115\115",1)local function P(Z)Z=math.clamp(Z,0,1)if s and(W and X)then X.Rotation=math.clamp(Z*2,0,1)*180 W.Rotation=180+math.clamp((Z-.5)*2,0,1)*180 X.Enabled=Z<.5 W.Enabled=Z<1 s.Visible=Z>0 end end return(s:GetAttributeChangedSignal("\080\114\111\103\114\101\115\115")):Connect(function()P(s:GetAttribute("\080\114\111\103\114\101\115\115"))end)end
-- 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
