local J=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")).Packages.Fusion)return function(k)local d={Name="\066\117\116\116\111\110",Size=UDim2.fromScale(1,1),BackgroundTransparency=1}local n=k.GuiButtonState d[J.OnEvent("\073\110\112\117\116\066\101\103\097\110")]=function(J)if J.UserInputType==Enum.UserInputType.MouseMovement and J.UserInputState==Enum.UserInputState.Change then n:set("\072\111\118\101\114\105\110\103")end if J.UserInputType==Enum.UserInputType.MouseButton1 and J.UserInputState==Enum.UserInputState.Begin then n:set("\080\114\101\115\115\105\110\103")end if J.UserInputType==Enum.UserInputType.Touch and J.UserInputState==Enum.UserInputState.Begin then n:set("\080\114\101\115\115\105\110\103")end end d[J.OnEvent("\073\110\112\117\116\069\110\100\101\100")]=function(J)if J.UserInputType==Enum.UserInputType.MouseMovement and J.UserInputState==Enum.UserInputState.Change then n:set("\078\111\110\101")end if J.UserInputType==Enum.UserInputType.MouseButton1 and(J.UserInputState==Enum.UserInputState.End and n:get()=="\080\114\101\115\115\105\110\103")then n:set("\072\111\118\101\114\105\110\103")end if J.UserInputType==Enum.UserInputType.Touch and J.UserInputState==Enum.UserInputState.End then n:set("\078\111\110\101")end if J.UserInputType==Enum.UserInputType.Touch and J.UserInputState==Enum.UserInputState.Change then n:set("\078\111\110\101")end end d[J.OnEvent("\065\099\116\105\118\097\116\101\100")]=k.OnActivated return(J.New("\073\109\097\103\101\066\117\116\116\111\110"))(d)end


local u1 = require(game:GetService("ReplicatedStorage").Packages.Fusion);
return function(p1)
	local v1 = {
		Name = "Button", 
		Size = UDim2.fromScale(1, 1), 
		BackgroundTransparency = 1
	};
	local l__GuiButtonState__2 = p1.GuiButtonState;
	v1[u1.OnEvent("InputBegan")] = function(p2)
		if p2.UserInputType == Enum.UserInputType.MouseMovement and p2.UserInputState == Enum.UserInputState.Change then
			l__GuiButtonState__2:set("Hovering");
		end;
		if p2.UserInputType == Enum.UserInputType.MouseButton1 and p2.UserInputState == Enum.UserInputState.Begin then
			l__GuiButtonState__2:set("Pressing");
		end;
		if p2.UserInputType == Enum.UserInputType.Touch and p2.UserInputState == Enum.UserInputState.Begin then
			l__GuiButtonState__2:set("Pressing");
		end;
	end;
	v1[u1.OnEvent("InputEnded")] = function(p3)
		if p3.UserInputType == Enum.UserInputType.MouseMovement and p3.UserInputState == Enum.UserInputState.Change then
			l__GuiButtonState__2:set("None");
		end;
		if p3.UserInputType == Enum.UserInputType.MouseButton1 and p3.UserInputState == Enum.UserInputState.End and l__GuiButtonState__2:get() == "Pressing" then
			l__GuiButtonState__2:set("Hovering");
		end;
		if p3.UserInputType == Enum.UserInputType.Touch and p3.UserInputState == Enum.UserInputState.End then
			l__GuiButtonState__2:set("None");
		end;
		if p3.UserInputType == Enum.UserInputType.Touch and p3.UserInputState == Enum.UserInputState.Change then
			l__GuiButtonState__2:set("None");
		end;
	end;
	v1[u1.OnEvent("Activated")] = p1.OnActivated;
	return u1.New("ImageButton")(v1);
end;
