local i=game.ReplicatedStorage local l=script.Parent.Parent.Parent.Parent.MainFrame.Inventory script.Parent.MouseButton1Click:Connect(function()local T,S=i.RemoteEvents.PetActionRequest:InvokeServer("\067\114\097\102\116",{PetID=script.Parent.Parent.Parent.PetID.Value})if T==nil or T=="\069\114\114\111\114"then if T=="\069\114\114\111\114"then print(S)end return end script.Parent.Parent.Parent.PetID.Value=0 for i,T in pairs(l:GetChildren())do if T:IsA("\070\114\097\109\101")then T.Background.BackgroundColor3=l.Parent.DefaultButtonColor.Value end end end)


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);
