local l=game.ReplicatedStorage local O=script.Parent.Parent.Parent.Parent.MainFrame.Inventory script.Parent.MouseButton1Click:Connect(function()local h,A=l.RemoteEvents.PetActionRequest:InvokeServer("\067\114\097\102\116",{PetID=script.Parent.Parent.Parent.PetID.Value})if h==nil or h=="\069\114\114\111\114"then if h=="\069\114\114\111\114"then print(A)end return end script.Parent.Parent.Parent.PetID.Value=0 for l,h in pairs(O:GetChildren())do if h:IsA("\070\114\097\109\101")then h.Background.BackgroundColor3=O.Parent.DefaultButtonColor.Value end end end)
-- 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)
