-- Decompiled with the Synapse X Luau decompiler.


local l__ReplicatedStorage__1 = game.ReplicatedStorage;
local l__Inventory__2 = script.Parent.Parent.Parent.Parent.MainFrame.Inventory;
script.Parent.MouseButton1Click:Connect(function()
	local v1, v2 = l__ReplicatedStorage__1.RemoteEvents.PetActionRequest:InvokeServer("Craft", {
		PetID = script.Parent.Parent.Parent.PetID.Value
	});
	if v1 == nil or v1 == "Error" then
		if v1 == "Error" then
			print(v2);
		end;
		return;
	end;
	script.Parent.Parent.Parent.PetID.Value = 0;
	for v3, v4 in pairs(l__Inventory__2:GetChildren()) do
		if v4:IsA("Frame") then
			v4.Background.BackgroundColor3 = l__Inventory__2.Parent.DefaultButtonColor.Value;
		end;
	end;
end);
